mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 21:07:52 -05:00
a few fixed in printer/factory (#14239)
This commit is contained in:
@@ -1753,7 +1753,6 @@ namespace ts {
|
||||
else {
|
||||
pushNameGenerationScope();
|
||||
write("{");
|
||||
increaseIndent();
|
||||
emitBlockStatements(node);
|
||||
write("}");
|
||||
popNameGenerationScope();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user