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

Function addTypesToIntersection

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

Source from the content-addressed store, hash-verified

61462 // Add the given types to the given type set. Order is preserved, freshness is removed from literal
61463 // types, duplicates are removed, and nested types of the given kind are flattened into the set.
61464 function addTypesToIntersection(typeSet, includes, types) {
61465 for (var _i = 0, types_12 = types; _i < types_12.length; _i++) {
61466 var type = types_12[_i];
61467 includes = addTypeToIntersection(typeSet, includes, getRegularTypeOfLiteralType(type));
61468 }
61469 return includes;
61470 }
61471 function removeRedundantPrimitiveTypes(types, includes) {
61472 var i = types.length;
61473 while (i > 0) {

Callers 2

addTypeToIntersectionFunction · 0.85
getIntersectionTypeFunction · 0.85

Calls 2

addTypeToIntersectionFunction · 0.85

Tested by

no test coverage detected