pub enum NodeKind {
Show 13 variants
Module,
Class,
Function,
Method,
Parameter,
Variable,
Call,
Import,
Literal,
Route,
SqlQuery,
Event,
Unknown,
}
Expand description
Types of nodes in the Universal AST
Variants§
Module
A module or file
Class
A class definition
Function
A function definition
Method
A method definition
Parameter
A function/method parameter
Variable
A variable declaration
Call
A function/method call
Import
An import statement
Literal
A literal value
Route
An HTTP route definition
SqlQuery
A SQL query
Event
An event emission
Unknown
Unknown node type
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeKind
impl<'de> Deserialize<'de> for NodeKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for NodeKind
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 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