assertValidMutableRanges() — react Function Reference
Architecture documentation for the assertValidMutableRanges() function in AssertValidMutableRanges.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 5b525258_03ba_b7ed_2935_0cd222ac2db3["assertValidMutableRanges()"] f9422309_9e6e_f2fd_460b_718008fd5ae7["AssertValidMutableRanges.ts"] 5b525258_03ba_b7ed_2935_0cd222ac2db3 -->|defined in| f9422309_9e6e_f2fd_460b_718008fd5ae7 71ad5730_9f0f_f255_1885_256493612553["visit()"] 5b525258_03ba_b7ed_2935_0cd222ac2db3 -->|calls| 71ad5730_9f0f_f255_1885_256493612553 10043bf1_f7ee_9ed9_307a_fe3edfd02b09["eachInstructionLValue()"] 5b525258_03ba_b7ed_2935_0cd222ac2db3 -->|calls| 10043bf1_f7ee_9ed9_307a_fe3edfd02b09 ccace1c3_85b7_a05e_c2a5_7eff8b3422ed["eachInstructionOperand()"] 5b525258_03ba_b7ed_2935_0cd222ac2db3 -->|calls| ccace1c3_85b7_a05e_c2a5_7eff8b3422ed 41232a25_deb6_6e83_05a8_ae9f961656f7["eachTerminalOperand()"] 5b525258_03ba_b7ed_2935_0cd222ac2db3 -->|calls| 41232a25_deb6_6e83_05a8_ae9f961656f7 style 5b525258_03ba_b7ed_2935_0cd222ac2db3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/AssertValidMutableRanges.ts lines 21–41
export function assertValidMutableRanges(fn: HIRFunction): void {
for (const [, block] of fn.body.blocks) {
for (const phi of block.phis) {
visit(phi.place, `phi for block bb${block.id}`);
for (const [pred, operand] of phi.operands) {
visit(operand, `phi predecessor bb${pred} for block bb${block.id}`);
}
}
for (const instr of block.instructions) {
for (const operand of eachInstructionLValue(instr)) {
visit(operand, `instruction [${instr.id}]`);
}
for (const operand of eachInstructionOperand(instr)) {
visit(operand, `instruction [${instr.id}]`);
}
}
for (const operand of eachTerminalOperand(block.terminal)) {
visit(operand, `terminal [${block.terminal.id}]`);
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does assertValidMutableRanges() do?
assertValidMutableRanges() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/AssertValidMutableRanges.ts.
Where is assertValidMutableRanges() defined?
assertValidMutableRanges() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/AssertValidMutableRanges.ts at line 21.
What does assertValidMutableRanges() call?
assertValidMutableRanges() calls 4 function(s): eachInstructionLValue, eachInstructionOperand, eachTerminalOperand, visit.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free