Skip to content

Commit 676e3bc

Browse files
committed
getSymbolAtLocation now returns symbol for external modules
1 parent cd1af12 commit 676e3bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16587,6 +16587,9 @@ namespace ts {
1658716587
}
1658816588

1658916589
function getSymbolAtLocation(node: Node) {
16590+
if (node.kind === SyntaxKind.SourceFile) {
16591+
return isExternalModule(<SourceFile>node) ? getMergedSymbol(node.symbol) : undefined;
16592+
}
1659016593
if (isInsideWithStatementBody(node)) {
1659116594
// We cannot answer semantic questions within a with block, do not proceed any further
1659216595
return undefined;

0 commit comments

Comments
 (0)