(type, value)
| 1788 | return false; |
| 1789 | } |
| 1790 | accept(type, value) { |
| 1791 | const token = this.peek(); |
| 1792 | if (token.type === type && (!value || token.value === value)) { |
| 1793 | this.read(); |
| 1794 | return true; |
| 1795 | } |
| 1796 | return false; |
| 1797 | } |
| 1798 | expect(type, value) { |
| 1799 | const token = this.peek(); |
| 1800 | if (token.type !== type) { |
no test coverage detected