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

Function createCompletionEntryForLiteral

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

Source from the content-addressed store, hash-verified

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 }
132429 function createCompletionEntry(symbol, sortText, replacementToken, contextToken, location, sourceFile, host, program, name, needsConvertPropertyAccess, origin, recommendedCompletion, propertyAccessToConvert, isJsxInitializer, importCompletionNode, useSemicolons, options, preferences, completionKind, formatContext, isJsxIdentifierExpected, isRightOfOpenTag) {
132430 var _a, _b;
132431 var insertText;

Callers 1

completionInfoFromDataFunction · 0.85

Calls 1

completionNameForLiteralFunction · 0.85

Tested by

no test coverage detected