Create a new error with the given span and error type.
(&self, span: Span, kind: ast::ErrorKind)
| 388 | |
| 389 | /// Create a new error with the given span and error type. |
| 390 | fn error(&self, span: Span, kind: ast::ErrorKind) -> ast::Error { |
| 391 | ast::Error { |
| 392 | kind: kind, |
| 393 | pattern: self.pattern().to_string(), |
| 394 | span: span, |
| 395 | } |
| 396 | } |
| 397 | |
| 398 | /// Return the current offset of the parser. |
| 399 | /// |
no test coverage detected