eachReactiveValueOperand() — react Function Reference
Architecture documentation for the eachReactiveValueOperand() function in visitors.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD eadd4103_8b1c_576b_7add_97a5c5edb9c7["eachReactiveValueOperand()"] 21609915_b03a_fd75_b58a_4cb86ef9315b["visitors.ts"] eadd4103_8b1c_576b_7add_97a5c5edb9c7 -->|defined in| 21609915_b03a_fd75_b58a_4cb86ef9315b 5f0939bb_76eb_1279_d295_dacefad72c8a["computeMemoizationInputs()"] 5f0939bb_76eb_1279_d295_dacefad72c8a -->|calls| eadd4103_8b1c_576b_7add_97a5c5edb9c7 b2fc2985_a7ba_9865_c2a3_2a7531f27d44["eachInstructionValueOperand()"] eadd4103_8b1c_576b_7add_97a5c5edb9c7 -->|calls| b2fc2985_a7ba_9865_c2a3_2a7531f27d44 style eadd4103_8b1c_576b_7add_97a5c5edb9c7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/visitors.ts lines 575–605
export function* eachReactiveValueOperand(
instrValue: ReactiveValue,
): Iterable<Place> {
switch (instrValue.kind) {
case 'OptionalExpression': {
yield* eachReactiveValueOperand(instrValue.value);
break;
}
case 'LogicalExpression': {
yield* eachReactiveValueOperand(instrValue.left);
yield* eachReactiveValueOperand(instrValue.right);
break;
}
case 'SequenceExpression': {
for (const instr of instrValue.instructions) {
yield* eachReactiveValueOperand(instr.value);
}
yield* eachReactiveValueOperand(instrValue.value);
break;
}
case 'ConditionalExpression': {
yield* eachReactiveValueOperand(instrValue.test);
yield* eachReactiveValueOperand(instrValue.consequent);
yield* eachReactiveValueOperand(instrValue.alternate);
break;
}
default: {
yield* eachInstructionValueOperand(instrValue);
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does eachReactiveValueOperand() do?
eachReactiveValueOperand() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/visitors.ts.
Where is eachReactiveValueOperand() defined?
eachReactiveValueOperand() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/visitors.ts at line 575.
What does eachReactiveValueOperand() call?
eachReactiveValueOperand() calls 1 function(s): eachInstructionValueOperand.
What calls eachReactiveValueOperand()?
eachReactiveValueOperand() is called by 1 function(s): computeMemoizationInputs.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free