visitOperand() — react Function Reference
Architecture documentation for the visitOperand() function in PropagateScopeDependenciesHIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD b9659720_c932_ebd9_335f_682c49188a34["visitOperand()"] 1be3b542_2ecf_364c_adef_6e5675b7385e["DependencyCollectionContext"] b9659720_c932_ebd9_335f_682c49188a34 -->|defined in| 1be3b542_2ecf_364c_adef_6e5675b7385e fe7b2dbb_34c7_f07a_c558_c479a9c5eb1e["handleInstruction()"] fe7b2dbb_34c7_f07a_c558_c479a9c5eb1e -->|calls| b9659720_c932_ebd9_335f_682c49188a34 5b709ffb_65e9_2125_d608_a351c667cd6c["collectDependencies()"] 5b709ffb_65e9_2125_d608_a351c667cd6c -->|calls| b9659720_c932_ebd9_335f_682c49188a34 b1bdda46_c31a_9557_b610_d2ed7c3ceaed["visitDependency()"] b9659720_c932_ebd9_335f_682c49188a34 -->|calls| b1bdda46_c31a_9557_b610_d2ed7c3ceaed style b9659720_c932_ebd9_335f_682c49188a34 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts lines 530–542
visitOperand(place: Place): void {
/*
* if this operand is a temporary created for a property load, try to resolve it to
* the expanded Place. Fall back to using the operand as-is.
*/
this.visitDependency(
this.#temporaries.get(place.identifier.id) ?? {
identifier: place.identifier,
reactive: place.reactive,
path: [],
},
);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does visitOperand() do?
visitOperand() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts.
Where is visitOperand() defined?
visitOperand() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts at line 530.
What does visitOperand() call?
visitOperand() calls 1 function(s): visitDependency.
What calls visitOperand()?
visitOperand() is called by 2 function(s): collectDependencies, handleInstruction.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free