pushEndScopeTerminal() — react Function Reference
Architecture documentation for the pushEndScopeTerminal() function in BuildReactiveScopeTerminalsHIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 622e9b47_1ef9_68d3_e687_49941b901c10["pushEndScopeTerminal()"] 779d40ec_03b1_7ad7_ef48_9ccec3c3bf70["BuildReactiveScopeTerminalsHIR.ts"] 622e9b47_1ef9_68d3_e687_49941b901c10 -->|defined in| 779d40ec_03b1_7ad7_ef48_9ccec3c3bf70 041ca752_10c1_3cda_1f5c_02f44a01310e["invariant()"] 622e9b47_1ef9_68d3_e687_49941b901c10 -->|calls| 041ca752_10c1_3cda_1f5c_02f44a01310e style 622e9b47_1ef9_68d3_e687_49941b901c10 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/BuildReactiveScopeTerminalsHIR.ts lines 230–244
function pushEndScopeTerminal(
scope: ReactiveScope,
context: ScopeTraversalContext,
): void {
const fallthroughId = context.fallthroughs.get(scope.id);
CompilerError.invariant(fallthroughId != null, {
reason: 'Expected scope to exist',
loc: GeneratedSource,
});
context.rewrites.push({
kind: 'EndScope',
fallthroughId,
instrId: scope.range.end,
});
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does pushEndScopeTerminal() do?
pushEndScopeTerminal() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/BuildReactiveScopeTerminalsHIR.ts.
Where is pushEndScopeTerminal() defined?
pushEndScopeTerminal() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/BuildReactiveScopeTerminalsHIR.ts at line 230.
What does pushEndScopeTerminal() call?
pushEndScopeTerminal() calls 1 function(s): invariant.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free