mirror of
https://codeberg.org/icewind/vdf-reader.git
synced 2026-06-03 18:14:07 +02:00
error codes
This commit is contained in:
parent
1ce1aecff7
commit
a71c6e73f0
1 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ impl Display for ExpectedTokens<'_> {
|
||||||
|
|
||||||
/// A token that wasn't expected was found while parsing
|
/// A token that wasn't expected was found while parsing
|
||||||
#[derive(Debug, Clone, Diagnostic)]
|
#[derive(Debug, Clone, Diagnostic)]
|
||||||
#[diagnostic(code(php_literal_parser::unexpected_token))]
|
#[diagnostic(code(vmt_reader::unexpected_token))]
|
||||||
pub struct UnexpectedTokenError {
|
pub struct UnexpectedTokenError {
|
||||||
#[label("Expected {}", ExpectedTokens(self.expected))]
|
#[label("Expected {}", ExpectedTokens(self.expected))]
|
||||||
err_span: SourceSpan,
|
err_span: SourceSpan,
|
||||||
|
|
@ -86,7 +86,7 @@ impl Error for UnexpectedTokenError {}
|
||||||
|
|
||||||
/// A token that wasn't expected was found while parsing
|
/// A token that wasn't expected was found while parsing
|
||||||
#[derive(Debug, Clone, Diagnostic)]
|
#[derive(Debug, Clone, Diagnostic)]
|
||||||
#[diagnostic(code(php_literal_parser::unexpected_token))]
|
#[diagnostic(code(vmt_reader::no_valid_token))]
|
||||||
pub struct NoValidTokenError {
|
pub struct NoValidTokenError {
|
||||||
#[label("Expected {}", ExpectedTokens(self.expected))]
|
#[label("Expected {}", ExpectedTokens(self.expected))]
|
||||||
err_span: SourceSpan,
|
err_span: SourceSpan,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue