getSymbolAtLocation now returns symbol for external modules

This commit is contained in:
Vladimir Matveev committed 2016-05-05 17:53:19 -07:00
1 parent cd1af127aa
commit 676e3bc872
1 file changed
+3
+3
View File
@@ -16587,6 +16587,9 @@ namespace ts {
}
function getSymbolAtLocation(node: Node) {
if (node.kind === SyntaxKind.SourceFile) {
return isExternalModule(<SourceFile>node) ? getMergedSymbol(node.symbol) : undefined;
}
if (isInsideWithStatementBody(node)) {
// We cannot answer semantic questions within a with block, do not proceed any further
return undefined;