visitPrunedScope() — react Function Reference
Architecture documentation for the visitPrunedScope() function in CodegenReactiveFunction.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 69733626_e3e0_3385_c1b9_4c1279a07d6f["visitPrunedScope()"] 9bbc5bc9_6c05_9d1a_15c0_dd51c82e4c60["CountMemoBlockVisitor"] 69733626_e3e0_3385_c1b9_4c1279a07d6f -->|defined in| 9bbc5bc9_6c05_9d1a_15c0_dd51c82e4c60 9e08bc54_4081_9437_d308_655eff9c1687["traversePrunedScope()"] 69733626_e3e0_3385_c1b9_4c1279a07d6f -->|calls| 9e08bc54_4081_9437_d308_655eff9c1687 6170a433_a27a_7455_6589_a23a789d4771["visitPrunedScope()"] 69733626_e3e0_3385_c1b9_4c1279a07d6f -->|calls| 6170a433_a27a_7455_6589_a23a789d4771 style 69733626_e3e0_3385_c1b9_4c1279a07d6f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts lines 414–421
override visitPrunedScope(
scopeBlock: PrunedReactiveScopeBlock,
state: void,
): void {
this.prunedMemoBlocks += 1;
this.prunedMemoValues += scopeBlock.scope.declarations.size;
this.traversePrunedScope(scopeBlock, state);
}
Domain
Subdomains
Defined In
Source
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/CodegenReactiveFunction.ts.
Where is visitPrunedScope() defined?
visitPrunedScope() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts at line 414.
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