Skip to content

Commit f0d9cb3

Browse files
committed
Add explanatory comment to FAR call-site
1 parent 1e93967 commit f0d9cb3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/services/findAllReferences.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,8 @@ namespace ts.FindAllReferences.Core {
510510
/** @param allSearchSymbols set of additinal symbols for use by `includes`. */
511511
createSearch(location: Node, symbol: Symbol, comingFrom: ImportExport | undefined, searchOptions: { text?: string, allSearchSymbols?: Symbol[] } = {}): Search {
512512
// Note: if this is an external module symbol, the name doesn't include quotes.
513+
// Note: getLocalSymbolForExportDefault handles `export default class C {}`, but not `export default C` or `export { C as default }`.
514+
// The other two forms seem to be handled downstream (i.e. special-casing the first form here appears to be intentional).
513515
const {
514516
text = stripQuotes(unescapeLeadingUnderscores((getLocalSymbolForExportDefault(symbol) || symbol).escapedName)),
515517
allSearchSymbols = undefined,

0 commit comments

Comments
 (0)