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

Function getSpaceSuggestion

test/fixtures/snapshot/typescript.js:32200–32208  ·  view source on GitHub ↗
(expressionText)

Source from the content-addressed store, hash-verified

32198 }
32199 }
32200 function getSpaceSuggestion(expressionText) {
32201 for (var _i = 0, viableKeywordSuggestions_1 = viableKeywordSuggestions; _i < viableKeywordSuggestions_1.length; _i++) {
32202 var keyword = viableKeywordSuggestions_1[_i];
32203 if (expressionText.length > keyword.length + 2 && ts.startsWith(expressionText, keyword)) {
32204 return "".concat(keyword, " ").concat(expressionText.slice(keyword.length));
32205 }
32206 }
32207 return undefined;
32208 }
32209 function parseSemicolonAfterPropertyName(name, type, initializer) {
32210 if (token() === 59 /* SyntaxKind.AtToken */ && !scanner.hasPrecedingLineBreak()) {
32211 parseErrorAtCurrentToken(ts.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);

Callers 1

Calls 2

concatMethod · 0.80
sliceMethod · 0.65

Tested by

no test coverage detected