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

Function completionNameForLiteral

test/fixtures/snapshot/typescript.js:132422–132425  ·  view source on GitHub ↗
(sourceFile, preferences, literal)

Source from the content-addressed store, hash-verified

132420 });
132421 }
132422 function completionNameForLiteral(sourceFile, preferences, literal) {
132423 return typeof literal === "object" ? ts.pseudoBigIntToString(literal) + "n" :
132424 ts.isString(literal) ? ts.quote(sourceFile, preferences, literal) : JSON.stringify(literal);
132425 }
132426 function createCompletionEntryForLiteral(sourceFile, preferences, literal) {
132427 return { name: completionNameForLiteral(sourceFile, preferences, literal), kind: "string" /* ScriptElementKind.string */, kindModifiers: "" /* ScriptElementKindModifier.none */, sortText: Completions.SortText.LocationPriority };
132428 }

Calls

no outgoing calls

Tested by

no test coverage detected