enterScope() — react Function Reference
Architecture documentation for the enterScope() function in PropagateScopeDependenciesHIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD ad463e10_0394_9f8b_1e38_c1e95a00ff97["enterScope()"] 1be3b542_2ecf_364c_adef_6e5675b7385e["DependencyCollectionContext"] ad463e10_0394_9f8b_1e38_c1e95a00ff97 -->|defined in| 1be3b542_2ecf_364c_adef_6e5675b7385e 5b709ffb_65e9_2125_d608_a351c667cd6c["collectDependencies()"] 5b709ffb_65e9_2125_d608_a351c667cd6c -->|calls| ad463e10_0394_9f8b_1e38_c1e95a00ff97 f523a4df_e5a4_d8d8_dbd0_ef75659ea0a5["inferDependencies()"] f523a4df_e5a4_d8d8_dbd0_ef75659ea0a5 -->|calls| ad463e10_0394_9f8b_1e38_c1e95a00ff97 358cdfdf_e03f_e4de_133c_5b70e0a98d45["push()"] ad463e10_0394_9f8b_1e38_c1e95a00ff97 -->|calls| 358cdfdf_e03f_e4de_133c_5b70e0a98d45 style ad463e10_0394_9f8b_1e38_c1e95a00ff97 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts lines 420–424
enterScope(scope: ReactiveScope): void {
// Set context for new scope
this.#dependencies = this.#dependencies.push([]);
this.#scopes = this.#scopes.push(scope);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does enterScope() do?
enterScope() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts.
Where is enterScope() defined?
enterScope() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts at line 420.
What does enterScope() call?
enterScope() calls 1 function(s): push.
What calls enterScope()?
enterScope() is called by 2 function(s): collectDependencies, inferDependencies.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free