Merge pull request #13103 from Microsoft/metadataOfClassFromModule

Update current scope when visiting namespace elements
This commit is contained in:
Sheetal Nandi
2016-12-21 13:59:31 -08:00
committed by GitHub
5 changed files with 103 additions and 1 deletions

View File

@@ -2731,7 +2731,7 @@ namespace ts {
let blockLocation: TextRange;
const body = node.body;
if (body.kind === SyntaxKind.ModuleBlock) {
addRange(statements, visitNodes((<ModuleBlock>body).statements, namespaceElementVisitor, isStatement));
saveStateAndInvoke(body, body => addRange(statements, visitNodes((<ModuleBlock>body).statements, namespaceElementVisitor, isStatement)));
statementsLocation = (<ModuleBlock>body).statements;
blockLocation = body;
}