#[non_exhaustive]pub enum NodeKind {
Script,
Module,
StatementList,
Declaration,
Statement,
Function,
Class,
Import,
Export,
Expression,
Group,
}Expand description
Neutral concrete-tree node category, stable for downstream extensions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Script
Script root.
Module
Module root.
StatementList
Statement list.
Declaration
A declaration.
Statement
A statement.
Function
Function declaration or expression.
Class
Class declaration or expression.
Import
Import declaration.
Export
Export declaration.
Expression
Expression region grouped through shared Pratt precedence.
Group
Delimited or computed region.
Trait Implementations§
impl Eq for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Freeze for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
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