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

Function tryGetConstructorCompletion

test/fixtures/snapshot/typescript.js:133842–133852  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133840 return result === 1 /* GlobalsSearch.Success */;
133841 }
133842 function tryGetConstructorCompletion() {
133843 if (!tryGetConstructorLikeCompletionContainer(contextToken))
133844 return 0 /* GlobalsSearch.Continue */;
133845 // no members, only keywords
133846 completionKind = 5 /* CompletionKind.None */;
133847 // Declaring new property/method/accessor
133848 isNewIdentifierLocation = true;
133849 // Has keywords for constructor parameter
133850 keywordFilters = 4 /* KeywordCompletionFilters.ConstructorParameterKeywords */;
133851 return 1 /* GlobalsSearch.Success */;
133852 }
133853 function tryGetJsxCompletionSymbols() {
133854 var jsxContainer = tryGetContainingJsxElement(contextToken);
133855 // Cursor is inside a JSX self-closing element or opening element

Callers 1

tryGetGlobalSymbolsFunction · 0.85

Tested by

no test coverage detected