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

Function getTypeFromIntersectionTypeNode

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

Source from the content-addressed store, hash-verified

61723 return intersections;
61724 }
61725 function getTypeFromIntersectionTypeNode(node) {
61726 var links = getNodeLinks(node);
61727 if (!links.resolvedType) {
61728 var aliasSymbol = getAliasSymbolForTypeNode(node);
61729 links.resolvedType = getIntersectionType(ts.map(node.types, getTypeFromTypeNode), aliasSymbol, getTypeArgumentsForAliasSymbol(aliasSymbol));
61730 }
61731 return links.resolvedType;
61732 }
61733 function createIndexType(type, stringsOnly) {
61734 var result = createType(4194304 /* TypeFlags.Index */);
61735 result.type = type;

Callers 1

Calls 5

getNodeLinksFunction · 0.85
getIntersectionTypeFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…