MCPcopy Create free account
hub / github.com/nodejs/node / getRegularTypeOfLiteralType

Function getRegularTypeOfLiteralType

test/fixtures/snapshot/typescript.js:63032–63036  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

63030 return type;
63031 }
63032 function getRegularTypeOfLiteralType(type) {
63033 return type.flags & 2944 /* TypeFlags.Literal */ ? type.regularType :
63034 type.flags & 1048576 /* TypeFlags.Union */ ? (type.regularType || (type.regularType = mapType(type, getRegularTypeOfLiteralType))) :
63035 type;
63036 }
63037 function isFreshLiteralType(type) {
63038 return !!(type.flags & 2944 /* TypeFlags.Literal */) && type.freshType === type;
63039 }

Callers 15

formatUnionTypesFunction · 0.85
getDeclaredTypeOfEnumFunction · 0.85
getTypeReferenceTypeFunction · 0.85
getTypeFromTypeQueryNodeFunction · 0.85
removeSubtypesFunction · 0.85
addTypesToIntersectionFunction · 0.85
getUnmatchedPropertiesFunction · 0.85
_loop_23Function · 0.85

Calls 1

mapTypeFunction · 0.85

Tested by

no test coverage detected