Home / Function/ visitPrunedScope() — react Function Reference

visitPrunedScope() — react Function Reference

Architecture documentation for the visitPrunedScope() function in PromoteUsedTemporaries.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  d6fc2aae_d117_f4a7_6693_a36c1926c9e7["visitPrunedScope()"]
  72ebc3b4_2ce2_f654_7f2e_189ecf9d6c10["PromoteAllInstancedOfPromotedTemporaries"]
  d6fc2aae_d117_f4a7_6693_a36c1926c9e7 -->|defined in| 72ebc3b4_2ce2_f654_7f2e_189ecf9d6c10
  f6f32b32_15a4_3c64_5848_4543d4791d32["traversePrunedScope()"]
  d6fc2aae_d117_f4a7_6693_a36c1926c9e7 -->|calls| f6f32b32_15a4_3c64_5848_4543d4791d32
  7d324b92_2bb0_8641_9cc5_f313a54baa2d["traverseScopeIdentifiers()"]
  d6fc2aae_d117_f4a7_6693_a36c1926c9e7 -->|calls| 7d324b92_2bb0_8641_9cc5_f313a54baa2d
  7407a654_96a6_3be0_caee_2d3a63abc527["visitPrunedScope()"]
  d6fc2aae_d117_f4a7_6693_a36c1926c9e7 -->|calls| 7407a654_96a6_3be0_caee_2d3a63abc527
  style d6fc2aae_d117_f4a7_6693_a36c1926c9e7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PromoteUsedTemporaries.ts lines 155–161

  override visitPrunedScope(
    scopeBlock: PrunedReactiveScopeBlock,
    state: State,
  ): void {
    this.traversePrunedScope(scopeBlock, state);
    this.traverseScopeIdentifiers(scopeBlock.scope, state);
  }

Frequently Asked Questions

What does visitPrunedScope() do?
visitPrunedScope() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PromoteUsedTemporaries.ts.
Where is visitPrunedScope() defined?
visitPrunedScope() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PromoteUsedTemporaries.ts at line 155.
What does visitPrunedScope() call?
visitPrunedScope() calls 3 function(s): traversePrunedScope, traverseScopeIdentifiers, visitPrunedScope.

Analyze Your Own Codebase

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

Try Supermodel Free