(self, expected: Sequence[TokenType])
| 118 | return None |
| 119 | |
| 120 | def reject(self, expected: Sequence[TokenType]) -> "NoReturn": |
| 121 | raise ParseError( |
| 122 | self.current.pos + 1, |
| 123 | "expected {}; got {}".format( |
| 124 | " OR ".join(type.value for type in expected), |
| 125 | self.current.type.value, |
| 126 | ), |
| 127 | ) |
| 128 | |
| 129 | |
| 130 | # True, False and None are legal match expression identifiers, |
no test coverage detected