File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4640,8 +4640,11 @@ namespace ts {
46404640 if ( symbol . flags & SymbolFlags . Alias ) {
46414641 const declaration = symbol . declarations [ 0 ] ;
46424642
4643- // We want go to the original declaration if the aliased symbol was declared in the location's parent node.
4644- // Except for cases when the aliased symbol is originating from a named import.
4643+ // Go to the original declaration for cases:
4644+ //
4645+ // (1) when the aliased symbol was declared in location(parent).
4646+ // (2) when the aliased symbol is originating from a named import.
4647+ //
46454648 if ( node . kind === SyntaxKind . Identifier &&
46464649 ( node . parent === declaration ||
46474650 ( declaration . kind === SyntaxKind . ImportSpecifier && declaration . parent && declaration . parent . kind === SyntaxKind . NamedImports ) ) ) {
You can’t perform that action at this time.
0 commit comments