visitPlace() — react Function Reference
Architecture documentation for the visitPlace() function in PruneHoistedContexts.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 0dafe3aa_7a5c_93b0_d6e4_69e932495a6a["visitPlace()"] d5fccea7_98aa_783b_f46b_c702031e387a["Visitor"] 0dafe3aa_7a5c_93b0_d6e4_69e932495a6a -->|defined in| d5fccea7_98aa_783b_f46b_c702031e387a 8d96a57b_ca06_9ec9_edd9_0932b6d3bae8["visitPlace()"] 0dafe3aa_7a5c_93b0_d6e4_69e932495a6a -->|calls| 8d96a57b_ca06_9ec9_edd9_0932b6d3bae8 style 0dafe3aa_7a5c_93b0_d6e4_69e932495a6a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneHoistedContexts.ts lines 82–97
override visitPlace(
_id: InstructionId,
place: Place,
state: VisitorState,
): void {
const maybeHoistedFn = state.uninitialized.get(place.identifier.id);
if (
maybeHoistedFn?.kind === 'func' &&
maybeHoistedFn.definition !== place
) {
CompilerError.throwTodo({
reason: '[PruneHoistedContexts] Rewrite hoisted function references',
loc: place.loc,
});
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does visitPlace() do?
visitPlace() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneHoistedContexts.ts.
Where is visitPlace() defined?
visitPlace() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneHoistedContexts.ts at line 82.
What does visitPlace() call?
visitPlace() calls 1 function(s): visitPlace.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free