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

Function createFlowType

test/fixtures/snapshot/typescript.js:69978–69980  ·  view source on GitHub ↗
(type, incomplete)

Source from the content-addressed store, hash-verified

69976 return flowType.flags === 0 ? flowType.type : flowType;
69977 }
69978 function createFlowType(type, incomplete) {
69979 return incomplete ? { flags: 0, type: type.flags & 131072 /* TypeFlags.Never */ ? silentNeverType : type } : type;
69980 }
69981 // An evolving array type tracks the element types that have so far been seen in an
69982 // 'x.push(value)' or 'x[n] = value' operation along the control flow graph. Evolving
69983 // array types are ultimately converted into manifest array types (using getFinalArrayType)

Callers 7

getTypeAtFlowAssignmentFunction · 0.85
getTypeAtFlowCallFunction · 0.85
getTypeAtFlowConditionFunction · 0.85
getTypeAtSwitchClauseFunction · 0.85
getTypeAtFlowBranchLabelFunction · 0.85
getTypeAtFlowLoopLabelFunction · 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…