Home / File/ jump-target-within-scope-label.ts — react Source File

jump-target-within-scope-label.ts — react Source File

Architecture documentation for jump-target-within-scope-label.ts, a typescript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

function useFoo({input, cond}) {
  const x = [];
  label: {
    if (cond) {
      break label;
    }
  }
  x.push(input.a.b); // unconditional
  return x;
}

export const FIXTURE_ENTRYPOINT = {
  fn: useFoo,
  params: [{input: {a: {b: 2}}, cond: false}],
  sequentialRenders: [
    {input: {a: {b: 2}}, cond: false},
    // preserve nullthrows
    {input: null, cond: false},
    {input: null, cond: true},
    {input: {}, cond: false},
    {input: {a: {b: null}}, cond: false},
    {input: {a: null}, cond: false},
    {input: {a: {b: 3}}, cond: false},
  ],
};

Subdomains

Functions

Frequently Asked Questions

What does jump-target-within-scope-label.ts do?
jump-target-within-scope-label.ts is a source file in the react codebase, written in typescript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in jump-target-within-scope-label.ts?
jump-target-within-scope-label.ts defines 1 function(s): useFoo.
Where is jump-target-within-scope-label.ts in the architecture?
jump-target-within-scope-label.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/jump-unpoisoned/jump-target-within-scope-label.ts (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/jump-unpoisoned).

Analyze Your Own Codebase

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

Try Supermodel Free