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

Function bindConditionalExpressionFlow

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

Source from the content-addressed store, hash-verified

46028 }
46029 }
46030 function bindConditionalExpressionFlow(node) {
46031 var trueLabel = createBranchLabel();
46032 var falseLabel = createBranchLabel();
46033 var postExpressionLabel = createBranchLabel();
46034 bindCondition(node.condition, trueLabel, falseLabel);
46035 currentFlow = finishFlowLabel(trueLabel);
46036 bind(node.questionToken);
46037 bind(node.whenTrue);
46038 addAntecedent(postExpressionLabel, currentFlow);
46039 currentFlow = finishFlowLabel(falseLabel);
46040 bind(node.colonToken);
46041 bind(node.whenFalse);
46042 addAntecedent(postExpressionLabel, currentFlow);
46043 currentFlow = finishFlowLabel(postExpressionLabel);
46044 }
46045 function bindInitializedVariableFlow(node) {
46046 var name = !ts.isOmittedExpression(node) ? node.name : undefined;
46047 if (ts.isBindingPattern(name)) {

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