(symbol, state)
| 137882 | } |
| 137883 | // Go to the symbol we imported from and find references for it. |
| 137884 | function searchForImportedSymbol(symbol, state) { |
| 137885 | if (!symbol.declarations) |
| 137886 | return; |
| 137887 | for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) { |
| 137888 | var declaration = _a[_i]; |
| 137889 | var exportingFile = declaration.getSourceFile(); |
| 137890 | // Need to search in the file even if it's not in the search-file set, because it might export the symbol. |
| 137891 | getReferencesInSourceFile(exportingFile, state.createSearch(declaration, symbol, 0 /* ImportExport.Import */), state, state.includesSourceFile(exportingFile)); |
| 137892 | } |
| 137893 | } |
| 137894 | /** Search for all occurrences of an identifier in a source file (and filter out the ones that match). */ |
| 137895 | function searchForName(sourceFile, search, state) { |
| 137896 | if (ts.getNameTable(sourceFile).get(search.escapedText) !== undefined) { |
no test coverage detected