eachInstructionLValue() — react Function Reference
Architecture documentation for the eachInstructionLValue() function in visitors.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 10043bf1_f7ee_9ed9_307a_fe3edfd02b09["eachInstructionLValue()"] 2f3caf55_cc64_415c_55dd_9771ba7dc210["visitors.ts"] 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 -->|defined in| 2f3caf55_cc64_415c_55dd_9771ba7dc210 505f2e0b_d43c_5972_8865_373d0dd08a6a["assertConsistentIdentifiers()"] 505f2e0b_d43c_5972_8865_373d0dd08a6a -->|calls| 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 ad41542d_7277_a7c4_02f9_ea27be6345d4["getScopes()"] ad41542d_7277_a7c4_02f9_ea27be6345d4 -->|calls| 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 5b525258_03ba_b7ed_2935_0cd222ac2db3["assertValidMutableRanges()"] 5b525258_03ba_b7ed_2935_0cd222ac2db3 -->|calls| 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 20604946_1e38_3a1d_16f9_b7ef2a574d7c["collectScopeInfo()"] 20604946_1e38_3a1d_16f9_b7ef2a574d7c -->|calls| 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 764ec9fb_0ee9_a9ca_abc4_d7c652d01a09["getOverlappingReactiveScopes()"] 764ec9fb_0ee9_a9ca_abc4_d7c652d01a09 -->|calls| 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 f3815d1a_36a1_3e3d_92f2_dbbe88f01fe3["inferMutationAliasingRanges()"] f3815d1a_36a1_3e3d_92f2_dbbe88f01fe3 -->|calls| 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 0f37c797_b04e_2552_16c2_13b03579eacc["handleInstruction()"] 0f37c797_b04e_2552_16c2_13b03579eacc -->|calls| 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 fddc4da2_1151_8052_c771_8b67085ebeca["inferReactivePlaces()"] fddc4da2_1151_8052_c771_8b67085ebeca -->|calls| 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 8b5121a5_55ad_8904_6f4c_ab19201c32ee["findReferencedRangeOfTemporaries()"] 8b5121a5_55ad_8904_6f4c_ab19201c32ee -->|calls| 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 8469c07f_bb75_970a_4a16_a21afba094e1["alignReactiveScopesToBlockScopesHIR()"] 8469c07f_bb75_970a_4a16_a21afba094e1 -->|calls| 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 11690004_c468_3b6b_f07f_36a6501f870a["visitBlock()"] 11690004_c468_3b6b_f07f_36a6501f870a -->|calls| 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 f6a9b2b0_32d7_a868_9762_f6fe2182d587["visitInstruction()"] f6a9b2b0_32d7_a868_9762_f6fe2182d587 -->|calls| 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 940018a6_e890_d3b5_6044_cb8053953421["traverseInstruction()"] 940018a6_e890_d3b5_6044_cb8053953421 -->|calls| 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 style 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/visitors.ts lines 27–34
export function* eachInstructionLValue(
instr: ReactiveInstruction,
): Iterable<Place> {
if (instr.lvalue !== null) {
yield instr.lvalue;
}
yield* eachInstructionValueLValue(instr.value);
}
Domain
Subdomains
Called By
- alignReactiveScopesToBlockScopesHIR()
- apply()
- assertConsistentIdentifiers()
- assertValidMutableRanges()
- collectDependencies()
- collectReactiveIdentifiersHIR()
- collectScopeInfo()
- eliminateRedundantPhi()
- findReferencedRangeOfTemporaries()
- getContextReassignment()
- getOverlappingReactiveScopes()
- getScopes()
- getSetStateCall()
- handleInstruction()
- inferMutationAliasingRanges()
- inferReactivePlaces()
- maybeRecordSetState()
- recordInstructionDerivations()
- traverseInstruction()
- traverseInstruction()
- validateHooksUsage()
- visitBlock()
- visitInstruction()
Source
Frequently Asked Questions
What does eachInstructionLValue() do?
eachInstructionLValue() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/visitors.ts.
Where is eachInstructionLValue() defined?
eachInstructionLValue() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/visitors.ts at line 27.
What does eachInstructionLValue() call?
eachInstructionLValue() calls 1 function(s): eachInstructionValueLValue.
What calls eachInstructionLValue()?
eachInstructionLValue() is called by 23 function(s): alignReactiveScopesToBlockScopesHIR, apply, assertConsistentIdentifiers, assertValidMutableRanges, collectDependencies, collectReactiveIdentifiersHIR, collectScopeInfo, eliminateRedundantPhi, and 15 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free