pub enum NodeCategory {
Token,
Identifier,
Literal,
Expression,
Function,
Class,
Statement,
TypeNode,
Module,
Jsx,
SourceFile,
}Expand description
Categories of nodes that share storage pools. Nodes in the same category have similar data layouts.
Variants§
Token
Simple tokens with no additional data (keywords, operators, etc.)
Identifier
Identifiers with text data
Literal
String/numeric/regex literals with text
Expression
Binary, unary, conditional expressions
Function
Function declarations and expressions
Class
Class declarations
Statement
Statements (if, for, while, etc.)
TypeNode
Type nodes (TypeReference, UnionType, etc.)
Module
Import/export declarations
Jsx
JSX elements
SourceFile
Source file (only one per parse)
Trait Implementations§
Source§impl Clone for NodeCategory
impl Clone for NodeCategory
Source§fn clone(&self) -> NodeCategory
fn clone(&self) -> NodeCategory
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 NodeCategory
impl Debug for NodeCategory
Source§impl PartialEq for NodeCategory
impl PartialEq for NodeCategory
impl Copy for NodeCategory
impl Eq for NodeCategory
impl StructuralPartialEq for NodeCategory
Auto Trait Implementations§
impl Freeze for NodeCategory
impl RefUnwindSafe for NodeCategory
impl Send for NodeCategory
impl Sync for NodeCategory
impl Unpin for NodeCategory
impl UnsafeUnpin for NodeCategory
impl UnwindSafe for NodeCategory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.