logo
pub enum Node {
Show 39 variants ArrayDecl(ArrayDecl), ArrowFunctionDecl(ArrowFunctionDecl), Assign(Assign), AsyncFunctionDecl(AsyncFunctionDecl), AsyncFunctionExpr(AsyncFunctionExpr), AwaitExpr(AwaitExpr), BinOp(BinOp), Block(Block), Break(Break), Call(Call), ConditionalOp(ConditionalOp), Const(Const), ConstDeclList(DeclarationList), Continue(Continue), DoWhileLoop(DoWhileLoop), FunctionDecl(FunctionDecl), FunctionExpr(FunctionExpr), GetConstField(GetConstField), GetField(GetField), ForLoop(ForLoop), ForInLoop(ForInLoop), ForOfLoop(ForOfLoop), If(If), LetDeclList(DeclarationList), Identifier(Identifier), New(New), Object(Object), Return(Return), Switch(Switch), Spread(Spread), TaggedTemplate(TaggedTemplate), TemplateLit(TemplateLit), Throw(Throw), Try(Try), This, UnaryOp(UnaryOp), VarDeclList(DeclarationList), WhileLoop(WhileLoop), Empty,
}

Variants

ArrayDecl(ArrayDecl)

Array declaration node. More information.

ArrowFunctionDecl(ArrowFunctionDecl)

An arrow function expression node. More information.

Assign(Assign)

An assignment operator node. More information.

AsyncFunctionDecl(AsyncFunctionDecl)

An async function declaration node. More information.

AsyncFunctionExpr(AsyncFunctionExpr)

An async function expression node. More information.

AwaitExpr(AwaitExpr)

An await expression node. More information.

BinOp(BinOp)

A binary operator node. More information.

Block(Block)

A Block node. More information.

Break(Break)

A break node. More information.

Call(Call)

A function call. More information.

ConditionalOp(ConditionalOp)

A javascript conditional operand ( x ? y : z ). More information.

Const(Const)

Literals represent values in JavaScript.

These are fixed values not variables that you literally provide in your script.

More information:

ConstDeclList(DeclarationList)

A constant declaration list. More information.

Continue(Continue)

A continue statement. More information.

DoWhileLoop(DoWhileLoop)

A do … while statement. More information.

FunctionDecl(FunctionDecl)

A function declaration node. More information.

FunctionExpr(FunctionExpr)

A function expression node. More information.

GetConstField(GetConstField)

Provides access to an object types’ constant properties. More information.

GetField(GetField)

Provides access to object fields. More information.

ForLoop(ForLoop)

A for statement. More information.

ForInLoop(ForInLoop)

A for...of or for..in statement. More information.

ForOfLoop(ForOfLoop)

A for...of statement. More information.

If(If)

An ‘if’ statement. More information.

LetDeclList(DeclarationList)

A let declaration list. More information.

Identifier(Identifier)

A local identifier node. More information.

New(New)

A new expression. More information.

Object(Object)

An object. More information.

Return(Return)

A return statement. More information.

Switch(Switch)

A switch {case} statement. More information.

Spread(Spread)

A spread (…x) statement. More information.

TaggedTemplate(TaggedTemplate)

A tagged template. More information.

TemplateLit(TemplateLit)

A template literal. More information.

Throw(Throw)

A throw statement. More information.

Try(Try)

A try...catch node. More information.

This

The JavaScript this keyword refers to the object it belongs to.

A property of an execution context (global, function or eval) that, in non–strict mode, is always a reference to an object and in strict mode can be any value.

More information:

UnaryOp(UnaryOp)

Unary operation node. More information

VarDeclList(DeclarationList)

Array declaration node. More information.

WhileLoop(WhileLoop)

A ‘while {…}’ node. More information.

Empty

A empty node.

Empty statement do nothing, just return undefined.

More information:

Implementations

Creates a This AST node.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
Runs this executable in the given context.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Marks all contained Gcs.
Increments the root-count of all contained Gcs.
Decrements the root-count of all contained Gcs.
Runs Finalize::finalize() on this object and all contained subobjects Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert the Rust type which implements NativeObject to a &dyn Any.
Convert the Rust type which implements NativeObject to a &mut dyn Any.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.