* Executes a callback in the provided context.
(context: ParseContextFlags, cb: () => T)
| 691 | * Executes a callback in the provided context. |
| 692 | */ |
| 693 | private withContext<T>(context: ParseContextFlags, cb: () => T): T { |
| 694 | this.context |= context; |
| 695 | const ret = cb(); |
| 696 | this.context ^= context; |
| 697 | return ret; |
| 698 | } |
| 699 | |
| 700 | private consumeOptionalCharacter(code: number): boolean { |
| 701 | if (this.next.isCharacter(code)) { |