MCPcopy Index your code
hub / github.com/nodejs/node / bindForInOrForOfStatement

Function bindForInOrForOfStatement

test/fixtures/snapshot/typescript.js:45601–45618  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

45599 currentFlow = finishFlowLabel(postLoopLabel);
45600 }
45601 function bindForInOrForOfStatement(node) {
45602 var preLoopLabel = setContinueTarget(node, createLoopLabel());
45603 var postLoopLabel = createBranchLabel();
45604 bind(node.expression);
45605 addAntecedent(preLoopLabel, currentFlow);
45606 currentFlow = preLoopLabel;
45607 if (node.kind === 244 /* SyntaxKind.ForOfStatement */) {
45608 bind(node.awaitModifier);
45609 }
45610 addAntecedent(postLoopLabel, currentFlow);
45611 bind(node.initializer);
45612 if (node.initializer.kind !== 255 /* SyntaxKind.VariableDeclarationList */) {
45613 bindAssignmentTargetFlow(node.initializer);
45614 }
45615 bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel);
45616 addAntecedent(preLoopLabel, currentFlow);
45617 currentFlow = finishFlowLabel(postLoopLabel);
45618 }
45619 function bindIfStatement(node) {
45620 var thenLabel = createBranchLabel();
45621 var elseLabel = createBranchLabel();

Callers 1

bindChildrenFunction · 0.85

Calls 8

setContinueTargetFunction · 0.85
createLoopLabelFunction · 0.85
createBranchLabelFunction · 0.85
addAntecedentFunction · 0.85
bindAssignmentTargetFlowFunction · 0.85
bindIterativeStatementFunction · 0.85
finishFlowLabelFunction · 0.85
bindFunction · 0.70

Tested by

no test coverage detected