* Next will skip to valid non-whitespace token * @returns true if there is a next token, false otherwise
()
| 120 | * @returns true if there is a next token, false otherwise |
| 121 | */ |
| 122 | next() { |
| 123 | for (this.ptr = this.ptr + 1; this.ptr < this.tokens.length; this.ptr++) { |
| 124 | if (this.currentType() !== "WHITESPACE") { |
| 125 | return true; |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | return false; |
| 130 | } |
| 131 | |
| 132 | match(value: string) { |
| 133 | if (this.end()) return false; |
no test coverage detected