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

Function bindOptionalChainFlow

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

Source from the content-addressed store, hash-verified

46144 }
46145 }
46146 function bindOptionalChainFlow(node) {
46147 if (isTopLevelLogicalExpression(node)) {
46148 var postExpressionLabel = createBranchLabel();
46149 bindOptionalChain(node, postExpressionLabel, postExpressionLabel);
46150 currentFlow = finishFlowLabel(postExpressionLabel);
46151 }
46152 else {
46153 bindOptionalChain(node, currentTrueTarget, currentFalseTarget);
46154 }
46155 }
46156 function bindNonNullExpressionFlow(node) {
46157 if (ts.isOptionalChain(node)) {
46158 bindOptionalChainFlow(node);

Callers 3

bindAccessExpressionFlowFunction · 0.85
bindCallExpressionFlowFunction · 0.85

Calls 4

createBranchLabelFunction · 0.85
bindOptionalChainFunction · 0.85
finishFlowLabelFunction · 0.85

Tested by

no test coverage detected