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

Function getTemplateStringForType

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

Source from the content-addressed store, hash-verified

61978 }
61979 }
61980 function getTemplateStringForType(type) {
61981 return type.flags & 128 /* TypeFlags.StringLiteral */ ? type.value :
61982 type.flags & 256 /* TypeFlags.NumberLiteral */ ? "" + type.value :
61983 type.flags & 2048 /* TypeFlags.BigIntLiteral */ ? ts.pseudoBigIntToString(type.value) :
61984 type.flags & (512 /* TypeFlags.BooleanLiteral */ | 98304 /* TypeFlags.Nullable */) ? type.intrinsicName :
61985 undefined;
61986 }
61987 function createTemplateLiteralType(texts, types) {
61988 var type = createType(134217728 /* TypeFlags.TemplateLiteral */);
61989 type.texts = texts;

Callers 1

addSpansFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected