Skip to content

Conversation

amcasey
Copy link
Member

@amcasey amcasey commented Feb 16, 2018

No description provided.

@amcasey amcasey requested a review from mhegazy February 16, 2018 22:52
@@ -356,7 +356,7 @@ namespace ts.FindAllReferences.Core {

/** Core find-all-references algorithm for a normal symbol. */
function getReferencedSymbolsForSymbol(symbol: Symbol, node: Node, sourceFiles: ReadonlyArray<SourceFile>, checker: TypeChecker, cancellationToken: CancellationToken, options: Options): SymbolAndEntries[] {
symbol = skipPastExportOrImportSpecifierOrUnion(symbol, node, checker);
symbol = skipPastExportOrImportSpecifierOrUnion(symbol, node, checker) || symbol;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would make the || symbol in that function unnecessary, and its return type should be updated to include undefined.

@amcasey amcasey merged commit 8341b13 into microsoft:master Feb 17, 2018
@amcasey amcasey deleted the FARBadImport branch February 17, 2018 00:17
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant