(statement: lua.WhileStatement)
| 486 | } |
| 487 | |
| 488 | public printWhileStatement(statement: lua.WhileStatement): SourceNode { |
| 489 | const chunks: SourceChunk[] = []; |
| 490 | |
| 491 | chunks.push(this.indent("while "), this.printExpression(statement.condition), " do\n"); |
| 492 | |
| 493 | this.pushIndent(); |
| 494 | chunks.push(this.printBlock(statement.body)); |
| 495 | this.popIndent(); |
| 496 | |
| 497 | chunks.push(this.indent("end")); |
| 498 | |
| 499 | return this.concatNodes(...chunks); |
| 500 | } |
| 501 | |
| 502 | public printRepeatStatement(statement: lua.RepeatStatement): SourceNode { |
| 503 | const chunks: SourceChunk[] = []; |
no test coverage detected