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

Function getTypeFromUnionTypeNode

test/fixtures/snapshot/typescript.js:61420–61427  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

61418 return type;
61419 }
61420 function getTypeFromUnionTypeNode(node) {
61421 var links = getNodeLinks(node);
61422 if (!links.resolvedType) {
61423 var aliasSymbol = getAliasSymbolForTypeNode(node);
61424 links.resolvedType = getUnionType(ts.map(node.types, getTypeFromTypeNode), 1 /* UnionReduction.Literal */, aliasSymbol, getTypeArgumentsForAliasSymbol(aliasSymbol));
61425 }
61426 return links.resolvedType;
61427 }
61428 function addTypeToIntersection(typeSet, includes, type) {
61429 var flags = type.flags;
61430 if (flags & 2097152 /* TypeFlags.Intersection */) {

Callers 1

Calls 5

getNodeLinksFunction · 0.85
getUnionTypeFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…