mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 23:08:20 -06:00
Merge pull request #8491 from Microsoft/sourceFile-getSymbolAtLocation
getSymbolAtLocation now returns symbol for external modules
This commit is contained in:
commit
7c043b67ae
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user