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

Function setFlowNodeReferenced

test/fixtures/snapshot/typescript.js:45434–45437  ·  view source on GitHub ↗
(flow)

Source from the content-addressed store, hash-verified

45432 return initFlowNode({ flags: 1024 /* FlowFlags.ReduceLabel */, target: target, antecedents: antecedents, antecedent: antecedent });
45433 }
45434 function setFlowNodeReferenced(flow) {
45435 // On first reference we set the Referenced flag, thereafter we set the Shared flag
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);

Callers 5

addAntecedentFunction · 0.85
createFlowConditionFunction · 0.85
createFlowSwitchClauseFunction · 0.85
createFlowMutationFunction · 0.85
createFlowCallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…