mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
getSymbolAtLocation now returns symbol for external modules
This commit is contained in:
1 parent
cd1af127aa
commit
676e3bc872
1 file changed
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user