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

Function createStringLiteral

test/fixtures/snapshot/typescript.js:22912–22918  ·  view source on GitHub ↗
(text, isSingleQuote, hasExtendedUnicodeEscape)

Source from the content-addressed store, hash-verified

22910 }
22911 // @api
22912 function createStringLiteral(text, isSingleQuote, hasExtendedUnicodeEscape) {
22913 var node = createBaseStringLiteral(text, isSingleQuote);
22914 node.hasExtendedUnicodeEscape = hasExtendedUnicodeEscape;
22915 if (hasExtendedUnicodeEscape)
22916 node.transformFlags |= 1024 /* TransformFlags.ContainsES2015 */;
22917 return node;
22918 }
22919 // @api
22920 function createStringLiteralFromNode(sourceNode) {
22921 var node = createBaseStringLiteral(ts.getTextOfIdentifierOrLiteral(sourceNode), /*isSingleQuote*/ undefined);

Callers 4

createLiteralLikeNodeFunction · 0.85
createTypeCheckFunction · 0.85
createUseStrictPrologueFunction · 0.85
asExpressionFunction · 0.85

Calls 1

createBaseStringLiteralFunction · 0.85

Tested by

no test coverage detected