Home / File/ constant-propagation.js — react Source File

constant-propagation.js — react Source File

Architecture documentation for constant-propagation.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

function foo() {
  const a = 1;
  const b = 2;
  const c = 3;
  const d = a + b;
  const e = d * c;
  const f = e / d;
  const g = f - e;

  if (g) {
    console.log('foo');
  }

  const h = g;
  const i = h;
  const j = i;
  return j;
}

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

Subdomains

Functions

Frequently Asked Questions

What does constant-propagation.js do?
constant-propagation.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 constant-propagation.js?
constant-propagation.js defines 1 function(s): foo.
Where is constant-propagation.js in the architecture?
constant-propagation.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/constant-propagation.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