extractScopeDeclarationsFromDestructuring() — react Function Reference
Architecture documentation for the extractScopeDeclarationsFromDestructuring() function in ExtractScopeDeclarationsFromDestructuring.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 2ac9c5e0_0af2_213a_8b3d_392d0269e297["extractScopeDeclarationsFromDestructuring()"] 791ee72b_8a79_10a6_5a13_5297a1e50d89["ExtractScopeDeclarationsFromDestructuring.ts"] 2ac9c5e0_0af2_213a_8b3d_392d0269e297 -->|defined in| 791ee72b_8a79_10a6_5a13_5297a1e50d89 2435b5f8_41a6_0458_ba88_4479b965455f["visitReactiveFunction()"] 2ac9c5e0_0af2_213a_8b3d_392d0269e297 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f style 2ac9c5e0_0af2_213a_8b3d_392d0269e297 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/ExtractScopeDeclarationsFromDestructuring.ts lines 82–91
export function extractScopeDeclarationsFromDestructuring(
fn: ReactiveFunction,
): void {
const state = new State(fn.env);
for (const param of fn.params) {
const place = param.kind === 'Identifier' ? param : param.place;
state.declared.add(place.identifier.declarationId);
}
visitReactiveFunction(fn, new Visitor(), state);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does extractScopeDeclarationsFromDestructuring() do?
extractScopeDeclarationsFromDestructuring() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/ExtractScopeDeclarationsFromDestructuring.ts.
Where is extractScopeDeclarationsFromDestructuring() defined?
extractScopeDeclarationsFromDestructuring() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/ExtractScopeDeclarationsFromDestructuring.ts at line 82.
What does extractScopeDeclarationsFromDestructuring() call?
extractScopeDeclarationsFromDestructuring() calls 1 function(s): visitReactiveFunction.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free