Skip to content

Commit 3d8a472

Browse files
committed
Updated comment
1 parent 6b30327 commit 3d8a472

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/services/services.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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))) {

0 commit comments

Comments
 (0)