Skip to content

Commit eb34f0c

Browse files
authored
a few fixed in printer/factory (microsoft#14239)
1 parent 746c45c commit eb34f0c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/compiler/emitter.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,6 @@ namespace ts {
17531753
else {
17541754
pushNameGenerationScope();
17551755
write("{");
1756-
increaseIndent();
17571756
emitBlockStatements(node);
17581757
write("}");
17591758
popNameGenerationScope();

src/compiler/factory.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ namespace ts {
11851185
}
11861186

11871187
export function createModuleBlock(statements: Statement[]) {
1188-
const node = <ModuleBlock>createSynthesizedNode(SyntaxKind.CaseBlock);
1188+
const node = <ModuleBlock>createSynthesizedNode(SyntaxKind.ModuleBlock);
11891189
node.statements = createNodeArray(statements);
11901190
return node;
11911191
}

0 commit comments

Comments
 (0)