Home / Function/ visitPrunedScope() — react Function Reference

visitPrunedScope() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  483921e6_5f43_cd9b_e1c3_c4e31c74fe85["visitPrunedScope()"]
  310c2965_2897_08a7_588d_8109c9f88c0c["Visitor"]
  483921e6_5f43_cd9b_e1c3_c4e31c74fe85 -->|defined in| 310c2965_2897_08a7_588d_8109c9f88c0c
  9e08bc54_4081_9437_d308_655eff9c1687["traversePrunedScope()"]
  483921e6_5f43_cd9b_e1c3_c4e31c74fe85 -->|calls| 9e08bc54_4081_9437_d308_655eff9c1687
  6170a433_a27a_7455_6589_a23a789d4771["visitPrunedScope()"]
  483921e6_5f43_cd9b_e1c3_c4e31c74fe85 -->|calls| 6170a433_a27a_7455_6589_a23a789d4771
  style 483921e6_5f43_cd9b_e1c3_c4e31c74fe85 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Validation/ValidatePreservedManualMemoization.ts lines 444–450

  override visitPrunedScope(
    scopeBlock: PrunedReactiveScopeBlock,
    state: VisitorState,
  ): void {
    this.traversePrunedScope(scopeBlock, state);
    this.prunedScopes.add(scopeBlock.scope.id);
  }

Domain

Subdomains

Frequently Asked Questions

What does visitPrunedScope() do?
visitPrunedScope() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Validation/ValidatePreservedManualMemoization.ts.
Where is visitPrunedScope() defined?
visitPrunedScope() is defined in compiler/packages/babel-plugin-react-compiler/src/Validation/ValidatePreservedManualMemoization.ts at line 444.
What does visitPrunedScope() call?
visitPrunedScope() calls 2 function(s): traversePrunedScope, visitPrunedScope.

Analyze Your Own Codebase

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

Try Supermodel Free