mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-07-27 18:35:44 +00:00
426f673b0a
Signed-off-by: xermicus <cyrill@parity.io>
17 lines
440 B
Rust
17 lines
440 B
Rust
//! The Yul IR lexer error.
|
|
|
|
use crate::yul::lexer::token::location::Location;
|
|
|
|
/// The Yul IR lexer error.
|
|
#[derive(Debug, thiserror::Error, PartialEq, Eq)]
|
|
pub enum Error {
|
|
/// The invalid lexeme error.
|
|
#[error("{location} Invalid character sequence `{sequence}`")]
|
|
InvalidLexeme {
|
|
/// The lexeme location.
|
|
location: Location,
|
|
/// The invalid sequence of characters.
|
|
sequence: String,
|
|
},
|
|
}
|