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

Function addAntecedent

test/fixtures/snapshot/typescript.js:45438–45443  ·  view source on GitHub ↗
(label, antecedent)

Source from the content-addressed store, hash-verified

45436 flow.flags |= flow.flags & 2048 /* FlowFlags.Referenced */ ? 4096 /* FlowFlags.Shared */ : 2048 /* FlowFlags.Referenced */;
45437 }
45438 function addAntecedent(label, antecedent) {
45439 if (!(antecedent.flags & 1 /* FlowFlags.Unreachable */) && !ts.contains(label.antecedents, antecedent)) {
45440 (label.antecedents || (label.antecedents = [])).push(antecedent);
45441 setFlowNodeReferenced(antecedent);
45442 }
45443 }
45444 function createFlowCondition(flags, antecedent, expression) {
45445 if (antecedent.flags & 1 /* FlowFlags.Unreachable */) {
45446 return antecedent;

Callers 15

bindContainerFunction · 0.85
createFlowMutationFunction · 0.85
bindConditionFunction · 0.85
bindWhileStatementFunction · 0.85
bindDoStatementFunction · 0.85
bindForStatementFunction · 0.85
bindIfStatementFunction · 0.85
bindReturnOrThrowFunction · 0.85
bindBreakOrContinueFlowFunction · 0.85
bindTryStatementFunction · 0.85
bindSwitchStatementFunction · 0.85

Calls 3

setFlowNodeReferencedFunction · 0.85
containsMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected