a few fixed in printer/factory (#14239)

This commit is contained in:
Vladimir Matveev authored and GitHub committed 2017-02-22 15:24:29 -08:00
1 parent 746c45ccd9
commit eb34f0ca03
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -1753,7 +1753,6 @@ namespace ts {
else {
pushNameGenerationScope();
write("{");
increaseIndent();
emitBlockStatements(node);
write("}");
popNameGenerationScope();
+1 -1
View File
@@ -1185,7 +1185,7 @@ namespace ts {
}
export function createModuleBlock(statements: Statement[]) {
const node = <ModuleBlock>createSynthesizedNode(SyntaxKind.CaseBlock);
const node = <ModuleBlock>createSynthesizedNode(SyntaxKind.ModuleBlock);
node.statements = createNodeArray(statements);
return node;
}