Wrap up a `Token` with the given location.
(token: Token, loc: Location)
| 68 | |
| 69 | /// Wrap up a `Token` with the given location. |
| 70 | fn token(token: Token, loc: Location) -> Result<LocatedToken, LocatedError> { |
| 71 | Ok(LocatedToken { |
| 72 | token, |
| 73 | location: loc, |
| 74 | }) |
| 75 | } |
| 76 | |
| 77 | /// An error from the lexical analysis. |
| 78 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] |
no test coverage detected