From f0d9cb3fbfe7317ff3f82c36cde5601992ed2875 Mon Sep 17 00:00:00 2001 From: Andrew Casey Date: Thu, 4 Jan 2018 14:28:24 -0800 Subject: [PATCH] Add explanatory comment to FAR call-site --- src/services/findAllReferences.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/findAllReferences.ts b/src/services/findAllReferences.ts index fa56326b9f0..de81cce8000 100644 --- a/src/services/findAllReferences.ts +++ b/src/services/findAllReferences.ts @@ -510,6 +510,8 @@ namespace ts.FindAllReferences.Core { /** @param allSearchSymbols set of additinal symbols for use by `includes`. */ createSearch(location: Node, symbol: Symbol, comingFrom: ImportExport | undefined, searchOptions: { text?: string, allSearchSymbols?: Symbol[] } = {}): Search { // Note: if this is an external module symbol, the name doesn't include quotes. + // Note: getLocalSymbolForExportDefault handles `export default class C {}`, but not `export default C` or `export { C as default }`. + // The other two forms seem to be handled downstream (i.e. special-casing the first form here appears to be intentional). const { text = stripQuotes(unescapeLeadingUnderscores((getLocalSymbolForExportDefault(symbol) || symbol).escapedName)), allSearchSymbols = undefined,