(&self, s: S)
| 10238 | } |
| 10239 | |
| 10240 | pub fn new_identifier<S>(&self, s: S) -> Result<Ident, ParserError> |
| 10241 | where |
| 10242 | S: TryInto<IdentString>, |
| 10243 | <S as TryInto<IdentString>>::Error: fmt::Display, |
| 10244 | { |
| 10245 | Ident::new(s).map_err(|e| ParserError { |
| 10246 | pos: self.peek_prev_pos(), |
| 10247 | message: e.to_string(), |
| 10248 | }) |
| 10249 | } |
| 10250 | } |
| 10251 | |
| 10252 | impl CheckedRecursion for Parser<'_> { |
no test coverage detected