(value)
| 76 | } |
| 77 | } |
| 78 | matchOpToken(value) { |
| 79 | if (this.currentToken() && this.currentToken().op && this.currentToken().value === value) { |
| 80 | return this.consumeToken(); |
| 81 | } |
| 82 | } |
| 83 | matchTokenType(...types) { |
| 84 | if (this.currentToken() && this.currentToken().type && types.includes(this.currentToken().type)) { |
| 85 | return this.consumeToken(); |
no test coverage detected