Home / File/ block-scoping-switch-dead-code.js — react Source File

block-scoping-switch-dead-code.js — react Source File

Architecture documentation for block-scoping-switch-dead-code.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

function useHook(a, b) {
  switch (a) {
    case 1:
      if (b == null) {
        return;
      }
      console.log(b);
      break;
    case 2:
      return;
    default:
      return;
  }
}

export const FIXTURE_ENTRYPOINT = {
  fn: useHook,
  params: [1, 'foo'],
};

Subdomains

Functions

Frequently Asked Questions

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