Home / Type/ RootNode Type — react Architecture

RootNode Type — react Architecture

Architecture documentation for the RootNode type/interface in CollectHoistablePropertyLoads.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  d60afefd_29f8_7bdb_d32d_d78a438f092c["RootNode"]
  53e05ed1_ffb1_8db2_8573_ef5a3fb99c72["CollectHoistablePropertyLoads.ts"]
  d60afefd_29f8_7bdb_d32d_d78a438f092c -->|defined in| 53e05ed1_ffb1_8db2_8573_ef5a3fb99c72
  style d60afefd_29f8_7bdb_d32d_d78a438f092c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/CollectHoistablePropertyLoads.ts lines 221–229

type RootNode = {
  properties: Map<PropertyLiteral, PropertyPathNode>;
  optionalProperties: Map<PropertyLiteral, PropertyPathNode>;
  parent: null;
  // Recorded to make later computations simpler
  fullPath: ReactiveScopeDependency;
  hasOptional: boolean;
  root: IdentifierId;
};

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free