MCPcopy Create free account
hub / github.com/nodejs/node / bindIfStatement

Function bindIfStatement

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

Source from the content-addressed store, hash-verified

45617 currentFlow = finishFlowLabel(postLoopLabel);
45618 }
45619 function bindIfStatement(node) {
45620 var thenLabel = createBranchLabel();
45621 var elseLabel = createBranchLabel();
45622 var postIfLabel = createBranchLabel();
45623 bindCondition(node.expression, thenLabel, elseLabel);
45624 currentFlow = finishFlowLabel(thenLabel);
45625 bind(node.thenStatement);
45626 addAntecedent(postIfLabel, currentFlow);
45627 currentFlow = finishFlowLabel(elseLabel);
45628 bind(node.elseStatement);
45629 addAntecedent(postIfLabel, currentFlow);
45630 currentFlow = finishFlowLabel(postIfLabel);
45631 }
45632 function bindReturnOrThrow(node) {
45633 bind(node.expression);
45634 if (node.kind === 247 /* SyntaxKind.ReturnStatement */) {

Callers 1

bindChildrenFunction · 0.85

Calls 5

createBranchLabelFunction · 0.85
bindConditionFunction · 0.85
finishFlowLabelFunction · 0.85
addAntecedentFunction · 0.85
bindFunction · 0.70

Tested by

no test coverage detected