Home / File/ switch-with-fallthrough.js — react Source File

switch-with-fallthrough.js — react Source File

Architecture documentation for switch-with-fallthrough.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

function foo(x) {
  let y;
  switch (x) {
    case 0: {
      y = 0;
    }
    case 1: {
      y = 1;
    }
    case 2: {
      break;
    }
    case 3: {
      y = 3;
      break;
    }
    case 4: {
      y = 4;
    }
    case 5: {
      y = 5;
    }
    default: {
      y = 0;
    }
  }
}

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

Subdomains

Functions

Frequently Asked Questions

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