Home / Type/ ScopeInfo Type — react Architecture

ScopeInfo Type — react Architecture

Architecture documentation for the ScopeInfo type/interface in MergeOverlappingReactiveScopesHIR.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  33a6c64b_548e_81fb_f5cf_a5838ddd70fa["ScopeInfo"]
  78244170_3d42_f86a_ea59_bce3e065fcfd["MergeOverlappingReactiveScopesHIR.ts"]
  33a6c64b_548e_81fb_f5cf_a5838ddd70fa -->|defined in| 78244170_3d42_f86a_ea59_bce3e065fcfd
  style 33a6c64b_548e_81fb_f5cf_a5838ddd70fa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/MergeOverlappingReactiveScopesHIR.ts lines 138–142

type ScopeInfo = {
  scopeStarts: Array<{id: InstructionId; scopes: Set<ReactiveScope>}>;
  scopeEnds: Array<{id: InstructionId; scopes: Set<ReactiveScope>}>;
  placeScopes: Map<Place, ReactiveScope>;
};

Frequently Asked Questions

What is the ScopeInfo type?
ScopeInfo is a type/interface in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/MergeOverlappingReactiveScopesHIR.ts.
Where is ScopeInfo defined?
ScopeInfo is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/MergeOverlappingReactiveScopesHIR.ts at line 138.

Analyze Your Own Codebase

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

Try Supermodel Free