pub enum MissingKind {
Expression,
Statement,
Identifier,
Block,
ClosingDelimiter(char),
Semicolon,
Condition,
Argument,
Operator,
}Expand description
Index into the diagnostics array in ParseOutput (from ast_v2).
Kinds of missing syntax elements for error recovery.
This enum provides specific information about what was expected but not found, enabling better IDE diagnostics and recovery.
Variants§
Expression
Missing expression (e.g., after = in assignment)
Statement
Missing statement
Identifier
Missing identifier/name
Block
Missing block { ... }
ClosingDelimiter(char)
Missing closing delimiter
Semicolon
Missing semicolon
Condition
Missing condition (e.g., in if)
Argument
Missing argument
Operator
Missing operator
Trait Implementations§
Source§impl Clone for MissingKind
impl Clone for MissingKind
Source§fn clone(&self) -> MissingKind
fn clone(&self) -> MissingKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MissingKind
impl Debug for MissingKind
Source§impl PartialEq for MissingKind
impl PartialEq for MissingKind
impl Copy for MissingKind
impl Eq for MissingKind
impl StructuralPartialEq for MissingKind
Auto Trait Implementations§
impl Freeze for MissingKind
impl RefUnwindSafe for MissingKind
impl Send for MissingKind
impl Sync for MissingKind
impl Unpin for MissingKind
impl UnsafeUnpin for MissingKind
impl UnwindSafe for MissingKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more