(...types)
| 74 | } |
| 75 | } |
| 76 | matchTokenType(...types) { |
| 77 | if (this.currentToken() && this.currentToken().type && types.includes(this.currentToken().type)) { |
| 78 | return this.consumeToken(); |
| 79 | } |
| 80 | } |
| 81 | matchAnyToken(...tokens) { |
| 82 | for (var i = 0; i < tokens.length; i++) { |
| 83 | var match = this.matchToken(tokens[i]); |
nothing calls this directly
no test coverage detected