printInstruction() — react Function Reference
Architecture documentation for the printInstruction() function in PrintHIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 1bdf9e01_ffb0_1422_a451_e62965a1969b["printInstruction()"] 6976a9ee_9d8e_4f16_3016_495f39aff2fd["PrintHIR.ts"] 1bdf9e01_ffb0_1422_a451_e62965a1969b -->|defined in| 6976a9ee_9d8e_4f16_3016_495f39aff2fd 0c09df5a_6c07_11e5_1a6b_9253007463b8["markInstructionIds()"] 0c09df5a_6c07_11e5_1a6b_9253007463b8 -->|calls| 1bdf9e01_ffb0_1422_a451_e62965a1969b 3f9f0373_2e57_1356_bd68_e2eec897e2f5["printHIR()"] 3f9f0373_2e57_1356_bd68_e2eec897e2f5 -->|calls| 1bdf9e01_ffb0_1422_a451_e62965a1969b 27402418_1586_dfa4_858b_40693675cab9["printMixedHIR()"] 27402418_1586_dfa4_858b_40693675cab9 -->|calls| 1bdf9e01_ffb0_1422_a451_e62965a1969b f3619b34_2818_79d3_d2a6_72b9bcfc9d1e["printInstructionValue()"] f3619b34_2818_79d3_d2a6_72b9bcfc9d1e -->|calls| 1bdf9e01_ffb0_1422_a451_e62965a1969b f255dd41_8c48_19a9_1bcc_8efd2d663f32["applySignature()"] f255dd41_8c48_19a9_1bcc_8efd2d663f32 -->|calls| 1bdf9e01_ffb0_1422_a451_e62965a1969b 843b9a2f_f7fa_8b25_52a1_e24f3185eefc["printNode()"] 843b9a2f_f7fa_8b25_52a1_e24f3185eefc -->|calls| 1bdf9e01_ffb0_1422_a451_e62965a1969b c65f3ebd_fe8f_602d_b885_bc79e6e81b1d["codegenInstructionNullable()"] c65f3ebd_fe8f_602d_b885_bc79e6e81b1d -->|calls| 1bdf9e01_ffb0_1422_a451_e62965a1969b f3619b34_2818_79d3_d2a6_72b9bcfc9d1e["printInstructionValue()"] 1bdf9e01_ffb0_1422_a451_e62965a1969b -->|calls| f3619b34_2818_79d3_d2a6_72b9bcfc9d1e bf7f1cf7_fc0e_6bac_827c_8d36d98126da["printPlace()"] 1bdf9e01_ffb0_1422_a451_e62965a1969b -->|calls| bf7f1cf7_fc0e_6bac_827c_8d36d98126da style 1bdf9e01_ffb0_1422_a451_e62965a1969b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts lines 157–169
export function printInstruction(instr: ReactiveInstruction): string {
const id = `[${instr.id}]`;
let value = printInstructionValue(instr.value);
if (instr.effects != null) {
value += `\n ${instr.effects.map(printAliasingEffect).join('\n ')}`;
}
if (instr.lvalue !== null) {
return `${id} ${printPlace(instr.lvalue)} = ${value}`;
} else {
return `${id} ${value}`;
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does printInstruction() do?
printInstruction() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts.
Where is printInstruction() defined?
printInstruction() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts at line 157.
What does printInstruction() call?
printInstruction() calls 2 function(s): printInstructionValue, printPlace.
What calls printInstruction()?
printInstruction() is called by 7 function(s): applySignature, codegenInstructionNullable, markInstructionIds, printHIR, printInstructionValue, printMixedHIR, printNode.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free