wrapWithSequence() — react Function Reference
Architecture documentation for the wrapWithSequence() function in BuildReactiveFunction.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 632db8c1_f225_c12d_1878_21c605802e1a["wrapWithSequence()"] e20dc57f_069b_7065_293d_92b4bae116ae["Driver"] 632db8c1_f225_c12d_1878_21c605802e1a -->|defined in| e20dc57f_069b_7065_293d_92b4bae116ae 21ce7ec8_0512_fc1a_b5e4_cc6bfd19ca66["visitValueBlock()"] 21ce7ec8_0512_fc1a_b5e4_cc6bfd19ca66 -->|calls| 632db8c1_f225_c12d_1878_21c605802e1a style 632db8c1_f225_c12d_1878_21c605802e1a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/BuildReactiveFunction.ts lines 71–97
wrapWithSequence(
instructions: Array<ReactiveInstruction>,
continuation: {
block: BlockId;
value: ReactiveValue;
place: Place;
id: InstructionId;
},
loc: SourceLocation,
): {block: BlockId; value: ReactiveValue; place: Place; id: InstructionId} {
if (instructions.length === 0) {
return continuation;
}
const sequence: ReactiveSequenceValue = {
kind: 'SequenceExpression',
instructions,
id: continuation.id,
value: continuation.value,
loc,
};
return {
block: continuation.block,
value: sequence,
place: continuation.place,
id: continuation.id,
};
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does wrapWithSequence() do?
wrapWithSequence() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/BuildReactiveFunction.ts.
Where is wrapWithSequence() defined?
wrapWithSequence() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/BuildReactiveFunction.ts at line 71.
What calls wrapWithSequence()?
wrapWithSequence() is called by 1 function(s): visitValueBlock.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free