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

Function populateSearchSymbolSet

test/fixtures/snapshot/typescript.js:138676–138690  ·  view source on GitHub ↗
(symbol, location, checker, isForRename, providePrefixAndSuffixText, implementations)

Source from the content-addressed store, hash-verified

138674 // For certain symbol kinds, we need to include other symbols in the search set.
138675 // This is not needed when searching for re-exports.
138676 function populateSearchSymbolSet(symbol, location, checker, isForRename, providePrefixAndSuffixText, implementations) {
138677 var result = [];
138678 forEachRelatedSymbol(symbol, location, checker, isForRename, !(isForRename && providePrefixAndSuffixText), function (sym, root, base) {
138679 // static method/property and instance method/property might have the same name. Only include static or only include instance.
138680 if (base) {
138681 if (isStaticSymbol(symbol) !== isStaticSymbol(base)) {
138682 base = undefined;
138683 }
138684 }
138685 result.push(base || root || sym);
138686 },
138687 // when try to find implementation, implementations is true, and not allowed to find base class
138688 /*allowBaseTypes*/ function () { return !implementations; });
138689 return result;
138690 }
138691 /**
138692 * @param allowBaseTypes return true means it would try to find in base class or interface.
138693 */

Callers 1

Calls 3

forEachRelatedSymbolFunction · 0.85
isStaticSymbolFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected