pub enum ParseErrorKind {
Show 15 variants
UnexpectedToken {
expected: String,
found: String,
},
UnclosedString,
UnclosedRegex,
UnclosedBlock,
MissingSemicolon,
InvalidSyntax,
UnclosedParenthesis,
UnclosedBracket,
UnclosedBrace,
UnterminatedHeredoc,
InvalidVariableName,
InvalidSubroutineName,
MissingOperator,
MissingOperand,
UnexpectedEof,
}Expand description
Specific types of parse errors found in Perl script content
Provides detailed categorization of parsing failures to enable targeted error recovery strategies during LSP workflows.
Variants§
UnexpectedToken
Parser encountered unexpected token during Perl script analysis
Fields
UnclosedString
String literal not properly closed in Perl script
UnclosedRegex
Regular expression pattern not properly closed
UnclosedBlock
Code block (braces) not properly closed
MissingSemicolon
Required semicolon missing in Perl script
InvalidSyntax
General syntax error in Perl parsing code
UnclosedParenthesis
Parenthesis not properly closed in expression
UnclosedBracket
Array or hash bracket not properly closed
UnclosedBrace
Hash or block brace not properly closed
UnterminatedHeredoc
Heredoc block not properly terminated
InvalidVariableName
Variable name does not follow Perl naming rules
InvalidSubroutineName
Subroutine name does not follow Perl naming rules
MissingOperator
Required operator missing in expression
MissingOperand
Required operand missing in expression
UnexpectedEof
Unexpected end of file during parsing
Trait Implementations§
Source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
Source§fn clone(&self) -> ParseErrorKind
fn clone(&self) -> ParseErrorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more