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

Function bindOptionalExpression

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

Source from the content-addressed store, hash-verified

46097 }
46098 }
46099 function bindOptionalExpression(node, trueTarget, falseTarget) {
46100 doWithConditionalBranches(bind, node, trueTarget, falseTarget);
46101 if (!ts.isOptionalChain(node) || ts.isOutermostOptionalChain(node)) {
46102 addAntecedent(trueTarget, createFlowCondition(32 /* FlowFlags.TrueCondition */, currentFlow, node));
46103 addAntecedent(falseTarget, createFlowCondition(64 /* FlowFlags.FalseCondition */, currentFlow, node));
46104 }
46105 }
46106 function bindOptionalChainRest(node) {
46107 switch (node.kind) {
46108 case 206 /* SyntaxKind.PropertyAccessExpression */:

Callers 1

bindOptionalChainFunction · 0.85

Calls 3

addAntecedentFunction · 0.85
createFlowConditionFunction · 0.85

Tested by

no test coverage detected