(ctx: PrintContext)
| 1014 | |
| 1015 | export class Block extends Paragraph<Statement> { |
| 1016 | override print(ctx: PrintContext) { |
| 1017 | if (this.statements?.length > 0) { |
| 1018 | ctx.level++; |
| 1019 | ctx.concatenateNextLine = false; |
| 1020 | let result = `{\n${super.print(ctx)}`; |
| 1021 | ctx.level--; |
| 1022 | result += `\n${ctx.padding}}`; |
| 1023 | return result; |
| 1024 | } else { |
| 1025 | return '{}'; |
| 1026 | } |
| 1027 | } |
| 1028 | } |
| 1029 | |
| 1030 | export class ExpressionStatement extends Statement { |
no outgoing calls
no test coverage detected