visitTerminal() — react Function Reference
Architecture documentation for the visitTerminal() function in StabilizeBlockIds.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 8f15af1e_7e01_3717_a54f_6134e46e8d14["visitTerminal()"] 018a4be0_a806_4852_96cb_ce5417b70e5d["RewriteBlockIds"] 8f15af1e_7e01_3717_a54f_6134e46e8d14 -->|defined in| 018a4be0_a806_4852_96cb_ce5417b70e5d 4f251116_46b0_419d_c3db_03e4ff8a5cce["visitTerminal()"] 4f251116_46b0_419d_c3db_03e4ff8a5cce -->|calls| 8f15af1e_7e01_3717_a54f_6134e46e8d14 4f251116_46b0_419d_c3db_03e4ff8a5cce["visitTerminal()"] 8f15af1e_7e01_3717_a54f_6134e46e8d14 -->|calls| 4f251116_46b0_419d_c3db_03e4ff8a5cce 14f2e51a_d755_814e_2f56_72d3ed119459["getOrInsertDefault()"] 8f15af1e_7e01_3717_a54f_6134e46e8d14 -->|calls| 14f2e51a_d755_814e_2f56_72d3ed119459 55773a39_5b37_d0fb_a280_dc321d87f4fb["traverseTerminal()"] 8f15af1e_7e01_3717_a54f_6134e46e8d14 -->|calls| 55773a39_5b37_d0fb_a280_dc321d87f4fb style 8f15af1e_7e01_3717_a54f_6134e46e8d14 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/StabilizeBlockIds.ts lines 67–86
override visitTerminal(
stmt: ReactiveTerminalStatement,
state: Map<BlockId, BlockId>,
): void {
if (stmt.label != null) {
const rewrittenId = getOrInsertDefault(state, stmt.label.id, state.size);
stmt.label.id = makeBlockId(rewrittenId);
}
const terminal = stmt.terminal;
if (terminal.kind === 'break' || terminal.kind === 'continue') {
const rewrittenId = getOrInsertDefault(
state,
terminal.target,
state.size,
);
terminal.target = makeBlockId(rewrittenId);
}
this.traverseTerminal(stmt, state);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does visitTerminal() do?
visitTerminal() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/StabilizeBlockIds.ts.
Where is visitTerminal() defined?
visitTerminal() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/StabilizeBlockIds.ts at line 67.
What does visitTerminal() call?
visitTerminal() calls 3 function(s): getOrInsertDefault, traverseTerminal, visitTerminal.
What calls visitTerminal()?
visitTerminal() is called by 1 function(s): visitTerminal.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free