[][src]Enum boa::syntax::ast::node::Node

pub enum Node {
    ArrayDecl(ArrayDecl),
    ArrowFunctionDecl(ArrowFunctionDecl),
    Assign(Assign),
    BinOp(BinOp),
    Block(Block),
    Break(Break),
    Call(Call),
    ConditionalOp(ConditionalOp),
    Const(Const),
    ConstDeclList(ConstDeclList),
    Continue(Continue),
    DoWhileLoop(DoWhileLoop),
    FunctionDecl(FunctionDecl),
    FunctionExpr(FunctionExpr),
    GetConstField(GetConstField),
    GetField(GetField),
    ForLoop(ForLoop),
    If(If),
    LetDeclList(LetDeclList),
    Identifier(Identifier),
    New(New),
    Object(Object),
    Return(Return),
    Switch(Switch),
    Spread(Spread),
    Throw(Throw),
    Try(Try),
    This,
    UnaryOp(UnaryOp),
    VarDeclList(VarDeclList),
    WhileLoop(WhileLoop),
}

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.

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(ConstDeclList)

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 expressino 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.

If(If)

An 'if' statement. More information.

LetDeclList(LetDeclList)

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.

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(VarDeclList)

Array declaration node. More information.

WhileLoop(WhileLoop)

A 'while {...}' node. More information.

Implementations

impl Node[src]

pub fn this() -> Self[src]

Creates a This AST node.

Trait Implementations

impl Clone for Node[src]

impl Debug for Node[src]

impl Display for Node[src]

impl Drop for Node[src]

impl Executable for Node[src]

impl Finalize for Node[src]

impl From<ArrayDecl> for Node[src]

impl From<ArrowFunctionDecl> for Node[src]

impl From<Assign> for Node[src]

impl From<BinOp> for Node[src]

impl From<Block> for Node[src]

impl From<Break> for Node[src]

impl From<Call> for Node[src]

impl From<ConditionalOp> for Node[src]

impl From<Const> for Node[src]

impl From<ConstDeclList> for Node[src]

impl From<Continue> for Node[src]

impl From<DoWhileLoop> for Node[src]

impl From<ForLoop> for Node[src]

impl From<FunctionDecl> for Node[src]

impl From<FunctionExpr> for Node[src]

impl From<GetConstField> for Node[src]

impl From<GetField> for Node[src]

impl From<Identifier> for Node[src]

impl From<If> for Node[src]

impl From<LetDeclList> for Node[src]

impl From<New> for Node[src]

impl From<Object> for Node[src]

impl From<Return> for Node[src]

impl From<Spread> for Node[src]

impl From<Switch> for Node[src]

impl From<Throw> for Node[src]

impl From<Try> for Node[src]

impl From<UnaryOp> for Node[src]

impl From<VarDeclList> for Node[src]

impl From<WhileLoop> for Node[src]

impl PartialEq<Node> for Node[src]

impl StructuralPartialEq for Node[src]

impl Trace for Node[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,