assertScopeInstructionsWithinScopes() — react Function Reference
Architecture documentation for the assertScopeInstructionsWithinScopes() function in AssertScopeInstructionsWithinScope.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 42620bac_62b1_d7ff_d8c2_2caa2e202517["assertScopeInstructionsWithinScopes()"] 01cf585d_2384_4412_6dde_8416d27772a6["AssertScopeInstructionsWithinScope.ts"] 42620bac_62b1_d7ff_d8c2_2caa2e202517 -->|defined in| 01cf585d_2384_4412_6dde_8416d27772a6 2435b5f8_41a6_0458_ba88_4479b965455f["visitReactiveFunction()"] 42620bac_62b1_d7ff_d8c2_2caa2e202517 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f style 42620bac_62b1_d7ff_d8c2_2caa2e202517 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/AssertScopeInstructionsWithinScope.ts lines 43–53
export function assertScopeInstructionsWithinScopes(
fn: ReactiveFunction,
): void {
const existingScopes = new Set<ScopeId>();
visitReactiveFunction(fn, new FindAllScopesVisitor(), existingScopes);
visitReactiveFunction(
fn,
new CheckInstructionsAgainstScopesVisitor(),
existingScopes,
);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does assertScopeInstructionsWithinScopes() do?
assertScopeInstructionsWithinScopes() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/AssertScopeInstructionsWithinScope.ts.
Where is assertScopeInstructionsWithinScopes() defined?
assertScopeInstructionsWithinScopes() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/AssertScopeInstructionsWithinScope.ts at line 43.
What does assertScopeInstructionsWithinScopes() call?
assertScopeInstructionsWithinScopes() 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