(value)
| 69 | } |
| 70 | } |
| 71 | matchOpToken(value) { |
| 72 | if (this.currentToken() && this.currentToken().op && this.currentToken().value === value) { |
| 73 | return this.consumeToken(); |
| 74 | } |
| 75 | } |
| 76 | matchTokenType(...types) { |
| 77 | if (this.currentToken() && this.currentToken().type && types.includes(this.currentToken().type)) { |
| 78 | return this.consumeToken(); |
no test coverage detected