visitScope() — react Function Reference
Architecture documentation for the visitScope() function in StabilizeBlockIds.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD e98a86ed_7460_9f5e_3162_292f816cc118["visitScope()"] ea5e56cb_c1ac_d4b3_6a18_922a0477d023["CollectReferencedLabels"] e98a86ed_7460_9f5e_3162_292f816cc118 -->|defined in| ea5e56cb_c1ac_d4b3_6a18_922a0477d023 159d2ac9_417f_4dd5_267f_2b3dd2be80ce["visitScope()"] 159d2ac9_417f_4dd5_267f_2b3dd2be80ce -->|calls| e98a86ed_7460_9f5e_3162_292f816cc118 2eebfc2b_b1f6_9f25_ad32_78be0b56f06b["traverseScope()"] e98a86ed_7460_9f5e_3162_292f816cc118 -->|calls| 2eebfc2b_b1f6_9f25_ad32_78be0b56f06b 159d2ac9_417f_4dd5_267f_2b3dd2be80ce["visitScope()"] e98a86ed_7460_9f5e_3162_292f816cc118 -->|calls| 159d2ac9_417f_4dd5_267f_2b3dd2be80ce style e98a86ed_7460_9f5e_3162_292f816cc118 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/StabilizeBlockIds.ts lines 31–37
override visitScope(scope: ReactiveScopeBlock, state: Set<BlockId>): void {
const {earlyReturnValue} = scope.scope;
if (earlyReturnValue != null) {
state.add(earlyReturnValue.label);
}
this.traverseScope(scope, state);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does visitScope() do?
visitScope() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/StabilizeBlockIds.ts.
Where is visitScope() defined?
visitScope() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/StabilizeBlockIds.ts at line 31.
What does visitScope() call?
visitScope() calls 2 function(s): traverseScope, visitScope.
What calls visitScope()?
visitScope() is called by 1 function(s): visitScope.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free