a few fixed in printer/factory (#14239)

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

View file

@ -1753,7 +1753,6 @@ namespace ts {
else {
pushNameGenerationScope();
write("{");
increaseIndent();
emitBlockStatements(node);
write("}");
popNameGenerationScope();

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;
}