mapInstructionLValues() — react Function Reference
Architecture documentation for the mapInstructionLValues() function in visitors.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 4f38d1cb_5a1e_1f03_9dbd_2513b7bb5a80["mapInstructionLValues()"] 2f3caf55_cc64_415c_55dd_9771ba7dc210["visitors.ts"] 4f38d1cb_5a1e_1f03_9dbd_2513b7bb5a80 -->|defined in| 2f3caf55_cc64_415c_55dd_9771ba7dc210 876d58c8_bfce_a9d8_22c0_b40cc7e22553["inlineJsxTransform()"] 876d58c8_bfce_a9d8_22c0_b40cc7e22553 -->|calls| 4f38d1cb_5a1e_1f03_9dbd_2513b7bb5a80 8ec30eb2_4622_378f_f538_3070f7a38fae["enterSSAImpl()"] 8ec30eb2_4622_378f_f538_3070f7a38fae -->|calls| 4f38d1cb_5a1e_1f03_9dbd_2513b7bb5a80 f6e40907_93a0_cbc4_14eb_4d0ec248c01a["mapPatternOperands()"] 4f38d1cb_5a1e_1f03_9dbd_2513b7bb5a80 -->|calls| f6e40907_93a0_cbc4_14eb_4d0ec248c01a style 4f38d1cb_5a1e_1f03_9dbd_2513b7bb5a80 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/visitors.ts lines 420–444
export function mapInstructionLValues(
instr: Instruction,
fn: (place: Place) => Place,
): void {
switch (instr.value.kind) {
case 'DeclareLocal':
case 'StoreLocal': {
const lvalue = instr.value.lvalue;
lvalue.place = fn(lvalue.place);
break;
}
case 'Destructure': {
mapPatternOperands(instr.value.lvalue.pattern, fn);
break;
}
case 'PostfixUpdate':
case 'PrefixUpdate': {
instr.value.lvalue = fn(instr.value.lvalue);
break;
}
}
if (instr.lvalue !== null) {
instr.lvalue = fn(instr.lvalue);
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does mapInstructionLValues() do?
mapInstructionLValues() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/visitors.ts.
Where is mapInstructionLValues() defined?
mapInstructionLValues() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/visitors.ts at line 420.
What does mapInstructionLValues() call?
mapInstructionLValues() calls 1 function(s): mapPatternOperands.
What calls mapInstructionLValues()?
mapInstructionLValues() is called by 2 function(s): enterSSAImpl, inlineJsxTransform.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free