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

Function bindCondition

test/fixtures/snapshot/typescript.js:45538–45544  ·  view source on GitHub ↗
(node, trueTarget, falseTarget)

Source from the content-addressed store, hash-verified

45536 currentFalseTarget = savedFalseTarget;
45537 }
45538 function bindCondition(node, trueTarget, falseTarget) {
45539 doWithConditionalBranches(bind, node, trueTarget, falseTarget);
45540 if (!node || !isLogicalAssignmentExpression(node) && !isLogicalExpression(node) && !(ts.isOptionalChain(node) && ts.isOutermostOptionalChain(node))) {
45541 addAntecedent(trueTarget, createFlowCondition(32 /* FlowFlags.TrueCondition */, currentFlow, node));
45542 addAntecedent(falseTarget, createFlowCondition(64 /* FlowFlags.FalseCondition */, currentFlow, node));
45543 }
45544 }
45545 function bindIterativeStatement(node, breakTarget, continueTarget) {
45546 var saveBreakTarget = currentBreakTarget;
45547 var saveContinueTarget = currentContinueTarget;

Callers 6

bindWhileStatementFunction · 0.85
bindDoStatementFunction · 0.85
bindForStatementFunction · 0.85
bindIfStatementFunction · 0.85

Calls 5

isLogicalExpressionFunction · 0.85
addAntecedentFunction · 0.85
createFlowConditionFunction · 0.85

Tested by

no test coverage detected