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

Function createLiteralType

test/fixtures/snapshot/typescript.js:63014–63020  ·  view source on GitHub ↗
(flags, value, symbol, regularType)

Source from the content-addressed store, hash-verified

63012 return info.isReadonly !== readonly ? createIndexInfo(info.keyType, info.type, readonly, info.declaration) : info;
63013 }
63014 function createLiteralType(flags, value, symbol, regularType) {
63015 var type = createType(flags);
63016 type.symbol = symbol;
63017 type.value = value;
63018 type.regularType = regularType || type;
63019 return type;
63020 }
63021 function getFreshTypeOfLiteralType(type) {
63022 if (type.flags & 2944 /* TypeFlags.Literal */) {
63023 if (!type.freshType) {

Callers 5

getStringLiteralTypeFunction · 0.85
getNumberLiteralTypeFunction · 0.85
getBigIntLiteralTypeFunction · 0.85
getEnumLiteralTypeFunction · 0.85

Calls 1

createTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…