* Search within node "container" for references for a search value, where the search value is defined as a * tuple of(searchSymbol, searchText, searchLocation, and searchMeaning). * searchLocation: a node where the search value
(container, sourceFile, search, state, addReferencesHere)
| 138148 | * searchLocation: a node where the search value |
| 138149 | */ |
| 138150 | function getReferencesInContainer(container, sourceFile, search, state, addReferencesHere) { |
| 138151 | if (!state.markSearchedSymbols(sourceFile, search.allSearchSymbols)) { |
| 138152 | return; |
| 138153 | } |
| 138154 | for (var _i = 0, _a = getPossibleSymbolReferencePositions(sourceFile, search.text, container); _i < _a.length; _i++) { |
| 138155 | var position = _a[_i]; |
| 138156 | getReferencesAtLocation(sourceFile, position, search, state, addReferencesHere); |
| 138157 | } |
| 138158 | } |
| 138159 | function hasMatchingMeaning(referenceLocation, state) { |
| 138160 | return !!(ts.getMeaningFromLocation(referenceLocation) & state.searchMeaning); |
| 138161 | } |
no test coverage detected