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

Function getTypeFromLiteralTypeNode

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

Source from the content-addressed store, hash-verified

63062 (enumLiteralTypes.set(key, type = createLiteralType(flags, value, symbol)), type);
63063 }
63064 function getTypeFromLiteralTypeNode(node) {
63065 if (node.literal.kind === 104 /* SyntaxKind.NullKeyword */) {
63066 return nullType;
63067 }
63068 var links = getNodeLinks(node);
63069 if (!links.resolvedType) {
63070 links.resolvedType = getRegularTypeOfLiteralType(checkExpression(node.literal));
63071 }
63072 return links.resolvedType;
63073 }
63074 function createUniqueESSymbolType(symbol) {
63075 var type = createType(8192 /* TypeFlags.UniqueESSymbol */);
63076 type.symbol = symbol;

Callers 1

Calls 3

getNodeLinksFunction · 0.85
checkExpressionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…