(ctx)
| 19 | } |
| 20 | |
| 21 | function consumeLine(ctx) { |
| 22 | if (ctx.lineIndex >= ctx.lines.length) { |
| 23 | reportError(ctx, "Unexpected end of file"); |
| 24 | } |
| 25 | const line = ctx.lines[ctx.lineIndex]; |
| 26 | ctx.lineIndex++; |
| 27 | return line; |
| 28 | } |
| 29 | |
| 30 | function peekLine(ctx) { |
| 31 | if (ctx.lineIndex >= ctx.lines.length) { |
no test coverage detected