Home / File/ reassignment-separate-scopes.js — react Source File

reassignment-separate-scopes.js — react Source File

Architecture documentation for reassignment-separate-scopes.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

function foo(a, b, c) {
  let x = [];
  if (a) {
    x.push(a);
  }
  let y = <div>{x}</div>;

  switch (b) {
    case 0: {
      x = [];
      x.push(b);
      break;
    }
    default: {
      x = [];
      x.push(c);
    }
  }
  return (
    <div>
      {y}
      {x}
    </div>
  );
}

export const FIXTURE_ENTRYPOINT = {
  fn: foo,
  params: ['TodoAdd'],
  isComponent: 'TodoAdd',
};

Subdomains

Functions

Frequently Asked Questions

What does reassignment-separate-scopes.js do?
reassignment-separate-scopes.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in reassignment-separate-scopes.js?
reassignment-separate-scopes.js defines 1 function(s): foo.
Where is reassignment-separate-scopes.js in the architecture?
reassignment-separate-scopes.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reassignment-separate-scopes.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free