(symbol, location, checker, isForRename, providePrefixAndSuffixText, implementations)
| 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 | */ |
no test coverage detected