isUsedOutsideDeclaringScope() — react Function Reference
Architecture documentation for the isUsedOutsideDeclaringScope() function in PropagateScopeDependenciesHIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD ded1f8c0_1fe0_2f60_1757_ce46724d6994["isUsedOutsideDeclaringScope()"] 1be3b542_2ecf_364c_adef_6e5675b7385e["DependencyCollectionContext"] ded1f8c0_1fe0_2f60_1757_ce46724d6994 -->|defined in| 1be3b542_2ecf_364c_adef_6e5675b7385e style ded1f8c0_1fe0_2f60_1757_ce46724d6994 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts lines 455–459
isUsedOutsideDeclaringScope(place: Place): boolean {
return this.#temporariesUsedOutsideScope.has(
place.identifier.declarationId,
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does isUsedOutsideDeclaringScope() do?
isUsedOutsideDeclaringScope() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts.
Where is isUsedOutsideDeclaringScope() defined?
isUsedOutsideDeclaringScope() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts at line 455.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free