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

Function createIntersectionType

test/fixtures/snapshot/typescript.js:61583–61590  ·  view source on GitHub ↗
(types, aliasSymbol, aliasTypeArguments)

Source from the content-addressed store, hash-verified

61581 return true;
61582 }
61583 function createIntersectionType(types, aliasSymbol, aliasTypeArguments) {
61584 var result = createType(2097152 /* TypeFlags.Intersection */);
61585 result.objectFlags = getPropagatingFlagsOfTypes(types, /*excludeKinds*/ 98304 /* TypeFlags.Nullable */);
61586 result.types = types;
61587 result.aliasSymbol = aliasSymbol;
61588 result.aliasTypeArguments = aliasTypeArguments;
61589 return result;
61590 }
61591 // We normalize combinations of intersection and union types based on the distributive property of the '&'
61592 // operator. Specifically, because X & (A | B) is equivalent to X & A | X & B, we can transform intersection
61593 // types with union type constituents into equivalent union types with intersection type constituents and

Callers 1

getIntersectionTypeFunction · 0.85

Calls 2

createTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…