We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd1af12 commit 676e3bcCopy full SHA for 676e3bc
1 file changed
src/compiler/checker.ts
@@ -16587,6 +16587,9 @@ namespace ts {
16587
}
16588
16589
function getSymbolAtLocation(node: Node) {
16590
+ if (node.kind === SyntaxKind.SourceFile) {
16591
+ return isExternalModule(<SourceFile>node) ? getMergedSymbol(node.symbol) : undefined;
16592
+ }
16593
if (isInsideWithStatementBody(node)) {
16594
// We cannot answer semantic questions within a with block, do not proceed any further
16595
return undefined;
0 commit comments