eachReachablePlace() — react Function Reference
Architecture documentation for the eachReachablePlace() function in TransformFire.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD eba3a482_6e86_10da_48dc_406d60ade0bd["eachReachablePlace()"] 6061353e_921a_a1a8_d6c1_777e8d9f8896["TransformFire.ts"] eba3a482_6e86_10da_48dc_406d60ade0bd -->|defined in| 6061353e_921a_a1a8_d6c1_777e8d9f8896 6e048cfd_d7b0_b702_7929_3e87d8dcd51c["ensureNoRemainingCalleeCaptures()"] 6e048cfd_d7b0_b702_7929_3e87d8dcd51c -->|calls| eba3a482_6e86_10da_48dc_406d60ade0bd d2181b26_6497_c534_1059_eea301950095["ensureNoMoreFireUses()"] d2181b26_6497_c534_1059_eea301950095 -->|calls| eba3a482_6e86_10da_48dc_406d60ade0bd ccace1c3_85b7_a05e_c2a5_7eff8b3422ed["eachInstructionOperand()"] eba3a482_6e86_10da_48dc_406d60ade0bd -->|calls| ccace1c3_85b7_a05e_c2a5_7eff8b3422ed style eba3a482_6e86_10da_48dc_406d60ade0bd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Transform/TransformFire.ts lines 361–374
function* eachReachablePlace(fn: HIRFunction): Iterable<Place> {
for (const [, block] of fn.body.blocks) {
for (const instr of block.instructions) {
if (
instr.value.kind === 'FunctionExpression' ||
instr.value.kind === 'ObjectMethod'
) {
yield* eachReachablePlace(instr.value.loweredFunc.func);
} else {
yield* eachInstructionOperand(instr);
}
}
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does eachReachablePlace() do?
eachReachablePlace() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Transform/TransformFire.ts.
Where is eachReachablePlace() defined?
eachReachablePlace() is defined in compiler/packages/babel-plugin-react-compiler/src/Transform/TransformFire.ts at line 361.
What does eachReachablePlace() call?
eachReachablePlace() calls 1 function(s): eachInstructionOperand.
What calls eachReachablePlace()?
eachReachablePlace() is called by 2 function(s): ensureNoMoreFireUses, ensureNoRemainingCalleeCaptures.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free