(fileName, position)
| 165369 | } |
| 165370 | /// References and Occurrences |
| 165371 | function getOccurrencesAtPosition(fileName, position) { |
| 165372 | return ts.flatMap(getDocumentHighlights(fileName, position, [fileName]), function (entry) { return entry.highlightSpans.map(function (highlightSpan) { return (__assign(__assign({ fileName: entry.fileName, textSpan: highlightSpan.textSpan, isWriteAccess: highlightSpan.kind === "writtenReference" /* HighlightSpanKind.writtenReference */ }, highlightSpan.isInString && { isInString: true }), highlightSpan.contextSpan && { contextSpan: highlightSpan.contextSpan })); }); }); |
| 165373 | } |
| 165374 | function getDocumentHighlights(fileName, position, filesToSearch) { |
| 165375 | var normalizedFileName = ts.normalizePath(fileName); |
| 165376 | ts.Debug.assert(filesToSearch.some(function (f) { return ts.normalizePath(f) === normalizedFileName; })); |
nothing calls this directly
no test coverage detected