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

Function insertType

test/fixtures/snapshot/typescript.js:61117–61124  ·  view source on GitHub ↗
(types, type)

Source from the content-addressed store, hash-verified

61115 return ts.binarySearch(types, type, getTypeId, ts.compareValues) >= 0;
61116 }
61117 function insertType(types, type) {
61118 var index = ts.binarySearch(types, type, getTypeId, ts.compareValues);
61119 if (index < 0) {
61120 types.splice(~index, 0, type);
61121 return true;
61122 }
61123 return false;
61124 }
61125 function addTypeToUnion(typeSet, includes, type) {
61126 var flags = type.flags;
61127 if (flags & 1048576 /* TypeFlags.Union */) {

Callers 2

getUnionTypeFunction · 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…