logo
pub enum Node {
Show 47 variants ArrayDecl(ArrayDecl), ArrowFunctionDecl(ArrowFunctionDecl), Assign(Assign), AsyncFunctionDecl(AsyncFunctionDecl), AsyncFunctionExpr(AsyncFunctionExpr), AsyncGeneratorExpr(AsyncGeneratorExpr), AsyncGeneratorDecl(AsyncGeneratorDecl), 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), GetPrivateField(GetPrivateField), 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(Box<TaggedTemplate>), TemplateLit(TemplateLit), Throw(Throw), Try(Box<Try>), This, UnaryOp(UnaryOp), VarDeclList(DeclarationList), WhileLoop(WhileLoop), Empty, Yield(Yield), GeneratorDecl(GeneratorDecl), GeneratorExpr(GeneratorExpr), ClassDecl(Class), ClassExpr(Class),
}

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.

AsyncGeneratorExpr(AsyncGeneratorExpr)

An async generator expression node.

AsyncGeneratorDecl(AsyncGeneratorDecl)

An async generator declaration node.

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.

GetPrivateField(GetPrivateField)

Provides access to an object types’ private 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(Box<TaggedTemplate>)

A tagged template. More information.

TemplateLit(TemplateLit)

A template literal. More information.

Throw(Throw)

A throw statement. More information.

Try(Box<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:

Yield(Yield)

A yield node. More information.

GeneratorDecl(GeneratorDecl)

A generator function declaration node. More information.

GeneratorExpr(GeneratorExpr)

A generator function expression node. More information.

ClassDecl(Class)

A class declaration. More information.

ClassExpr(Class)

A class declaration. 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

Executes the destructor for this type. Read more

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.

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 !=.

Converts a given element to a string using an interner.

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

Converts self into T using Into<T>. 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.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

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

Attempts to convert self into T using TryInto<T>. 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.