pub struct Node {Show 23 fields
pub type: Option<String>,
pub elements: Vec<DictItem>,
pub params: Vec<Property>,
pub body: Vec<Statement>,
pub operator: Option<String>,
pub left: Option<Box<Expression>>,
pub right: Option<Box<Expression>>,
pub callee: Option<Box<Expression>>,
pub arguments: Vec<Expression>,
pub test: Option<Box<Expression>>,
pub alternate: Option<Box<Expression>>,
pub consequent: Option<Box<Expression>>,
pub object: Option<Box<Expression>>,
pub property: Option<PropertyKey>,
pub array: Option<Box<Expression>>,
pub index: Option<Box<Expression>>,
pub properties: Vec<Property>,
pub expression: Option<Box<Expression>>,
pub argument: Option<Box<Expression>>,
pub call: Option<CallExpression>,
pub value: Option<String>,
pub values: Vec<Duration>,
pub name: Option<String>,
}
Expand description
Node
Fields
type: Option<String>
Type of AST node
elements: Vec<DictItem>
Elements of the dictionary
params: Vec<Property>
Function parameters
body: Vec<Statement>
Block body
operator: Option<String>
Node Operator
left: Option<Box<Expression>>
Left left node
right: Option<Box<Expression>>
Right right node
callee: Option<Box<Expression>>
Parent node
arguments: Vec<Expression>
Function arguments
test: Option<Box<Expression>>
Test Expr
alternate: Option<Box<Expression>>
Alternate Expr
consequent: Option<Box<Expression>>
Consequent Expr
object: Option<Box<Expression>>
Object Expr
property: Option<PropertyKey>
PropertyKey
array: Option<Box<Expression>>
Array Expr
index: Option<Box<Expression>>
Index Expr
properties: Vec<Property>
Object properties
expression: Option<Box<Expression>>
Expression
argument: Option<Box<Expression>>
Node arguments
call: Option<CallExpression>
Call Expr
value: Option<String>
Node Value
values: Vec<Duration>
Duration values
name: Option<String>
Node name
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
sourcefn 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 StructuralPartialEq for Node
Auto Trait Implementations
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more