(kind)
| 11487 | return cur; |
| 11488 | } |
| 11489 | nextIf(kind) { |
| 11490 | if (this.cur().kind !== kind) { |
| 11491 | return false; |
| 11492 | } |
| 11493 | this.next(); |
| 11494 | return true; |
| 11495 | } |
| 11496 | expect(kind) { |
| 11497 | if (this.cur().kind !== kind) { |
| 11498 | throw new python.Error(`Unexpected '${this.cur().kind}' instead of '${kind}'.`); |
no test coverage detected