Enum rust_sitter::errors::ParseErrorReason
source · pub enum ParseErrorReason {
UnexpectedToken(String),
FailedNode(Vec<ParseError>),
MissingToken(String),
}Expand description
An explanation for an error that occurred during parsing.
Variants§
UnexpectedToken(String)
The parser did not expect to see some token.
FailedNode(Vec<ParseError>)
Tree Sitter failed to parse a specific intermediate node. The underlying failures are in the vector.
MissingToken(String)
The parser expected a specific token, but it was not found.