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

Function createLiteralLikeNode

test/fixtures/snapshot/typescript.js:22931–22941  ·  view source on GitHub ↗
(kind, text)

Source from the content-addressed store, hash-verified

22929 }
22930 // @api
22931 function createLiteralLikeNode(kind, text) {
22932 switch (kind) {
22933 case 8 /* SyntaxKind.NumericLiteral */: return createNumericLiteral(text, /*numericLiteralFlags*/ 0);
22934 case 9 /* SyntaxKind.BigIntLiteral */: return createBigIntLiteral(text);
22935 case 10 /* SyntaxKind.StringLiteral */: return createStringLiteral(text, /*isSingleQuote*/ undefined);
22936 case 11 /* SyntaxKind.JsxText */: return createJsxText(text, /*containsOnlyTriviaWhiteSpaces*/ false);
22937 case 12 /* SyntaxKind.JsxTextAllWhiteSpaces */: return createJsxText(text, /*containsOnlyTriviaWhiteSpaces*/ true);
22938 case 13 /* SyntaxKind.RegularExpressionLiteral */: return createRegularExpressionLiteral(text);
22939 case 14 /* SyntaxKind.NoSubstitutionTemplateLiteral */: return createTemplateLiteralLikeNode(kind, text, /*rawText*/ undefined, /*templateFlags*/ 0);
22940 }
22941 }
22942 //
22943 // Identifiers
22944 //

Callers

nothing calls this directly

Calls 6

createNumericLiteralFunction · 0.85
createBigIntLiteralFunction · 0.85
createStringLiteralFunction · 0.85
createJsxTextFunction · 0.85

Tested by

no test coverage detected