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

Function addTypesToUnion

test/fixtures/snapshot/typescript.js:61153–61159  ·  view source on GitHub ↗
(typeSet, includes, types)

Source from the content-addressed store, hash-verified

61151 // Add the given types to the given type set. Order is preserved, duplicates are removed,
61152 // and nested types of the given kind are flattened into the set.
61153 function addTypesToUnion(typeSet, includes, types) {
61154 for (var _i = 0, types_9 = types; _i < types_9.length; _i++) {
61155 var type = types_9[_i];
61156 includes = addTypeToUnion(typeSet, includes, type);
61157 }
61158 return includes;
61159 }
61160 function removeSubtypes(types, hasObjectTypes) {
61161 // [] and [T] immediately reduce to [] and [T] respectively
61162 if (types.length < 2) {

Callers 2

addTypeToUnionFunction · 0.85
getUnionTypeFunction · 0.85

Calls 1

addTypeToUnionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…