Home / Type/ ControlFlowTarget Type — react Architecture

ControlFlowTarget Type — react Architecture

Architecture documentation for the ControlFlowTarget type/interface in BuildReactiveFunction.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  9279ff72_dd1c_5730_da68_5c12c8191d9c["ControlFlowTarget"]
  3e304366_7140_93cb_47c8_0d400140265a["BuildReactiveFunction.ts"]
  9279ff72_dd1c_5730_da68_5c12c8191d9c -->|defined in| 3e304366_7140_93cb_47c8_0d400140265a
  style 9279ff72_dd1c_5730_da68_5c12c8191d9c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/BuildReactiveFunction.ts lines 1475–1487

type ControlFlowTarget =
  | {type: 'if'; block: BlockId; id: number}
  | {type: 'switch'; block: BlockId; id: number}
  | {type: 'case'; block: BlockId; id: number}
  | {
      type: 'loop';
      block: BlockId;
      ownsBlock: boolean;
      continueBlock: BlockId;
      loopBlock: BlockId | null;
      ownsLoop: boolean;
      id: number;
    };

Frequently Asked Questions

What is the ControlFlowTarget type?
ControlFlowTarget is a type/interface in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/BuildReactiveFunction.ts.
Where is ControlFlowTarget defined?
ControlFlowTarget is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/BuildReactiveFunction.ts at line 1475.

Analyze Your Own Codebase

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

Try Supermodel Free