rewriteInstructions() — react Function Reference
Architecture documentation for the rewriteInstructions() function in TransformFire.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 1825b8f8_5c2c_6a8f_c3ed_e5b202636fe2["rewriteInstructions()"] 6061353e_921a_a1a8_d6c1_777e8d9f8896["TransformFire.ts"] 1825b8f8_5c2c_6a8f_c3ed_e5b202636fe2 -->|defined in| 6061353e_921a_a1a8_d6c1_777e8d9f8896 38224692_55f3_a937_63fd_e0266e855650["replaceFireFunctions()"] 38224692_55f3_a937_63fd_e0266e855650 -->|calls| 1825b8f8_5c2c_6a8f_c3ed_e5b202636fe2 53244187_914c_cc90_5880_7bfc1fc9c0bb["push()"] 1825b8f8_5c2c_6a8f_c3ed_e5b202636fe2 -->|calls| 53244187_914c_cc90_5880_7bfc1fc9c0bb style 1825b8f8_5c2c_6a8f_c3ed_e5b202636fe2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Transform/TransformFire.ts lines 720–739
function rewriteInstructions(
rewriteInstrs: Map<InstructionId, Array<Instruction>>,
instructions: Array<Instruction>,
): Array<Instruction> {
if (rewriteInstrs.size > 0) {
const newInstrs = [];
for (const instr of instructions) {
const newInstrsAtId = rewriteInstrs.get(instr.id);
if (newInstrsAtId != null) {
newInstrs.push(...newInstrsAtId, instr);
} else {
newInstrs.push(instr);
}
}
return newInstrs;
}
return instructions;
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does rewriteInstructions() do?
rewriteInstructions() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Transform/TransformFire.ts.
Where is rewriteInstructions() defined?
rewriteInstructions() is defined in compiler/packages/babel-plugin-react-compiler/src/Transform/TransformFire.ts at line 720.
What does rewriteInstructions() call?
rewriteInstructions() calls 1 function(s): push.
What calls rewriteInstructions()?
rewriteInstructions() is called by 1 function(s): replaceFireFunctions.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free