a few fixed in printer/factory (#14239)
This commit is contained in:
parent
746c45ccd9
commit
eb34f0ca03
2 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue