(...str)
| 46 | } |
| 47 | |
| 48 | writeln(...str) { |
| 49 | for ( let i = 0; i < str.length; i++ ) { |
| 50 | this.buf += str[i]; |
| 51 | if (str[i] != null && str[i].split) { |
| 52 | const strSplit = str[i].split(NL); |
| 53 | this.lineOffset += strSplit.length - 1; |
| 54 | } |
| 55 | } |
| 56 | this.buf += NL; |
| 57 | this.endsWithNewLine = true; |
| 58 | this.lineOffset += 1; |
| 59 | this.columnOffset = 0; |
| 60 | } |
| 61 | |
| 62 | ensureNewLine() { |
| 63 | if ( !this.endsWithNewLine ) { |
no outgoing calls
no test coverage detected