[][src]Enum ecmascript::ast::expression::Expression

pub enum Expression<'ast> {
    This(&'ast Keyword),
    Spread(&'ast SpreadExpression<'ast>),
    Super(&'ast Keyword),
    Identifier(&'ast Identifier<'ast>),
    Null(&'ast LiteralNull),
    Boolean(&'ast LiteralBoolean),
    String(&'ast LiteralString<'ast>),
    Numeric(&'ast LiteralNumeric<'ast>),
    RegularExpression(&'ast LiteralRegularExpression<'ast>),
    Template(&'ast LiteralTemplateExpression<'ast>),
    ArrayLiteral(&'ast ArrayLiteral<'ast>),
    ObjectLiteral(&'ast ObjectLiteral<'ast>),
    Function(&'ast FunctionExpression<'ast>),
    ArrowFunction(&'ast ArrowFunctionExpression<'ast>),
    Class(&'ast ClassExpression<'ast>),
    Parenthesized(&'ast ParenthesizedExpression<'ast>),
    Member(&'ast MemberExpression<'ast>),
    TaggedTemplate(&'ast TaggedTemplateExpression<'ast>),
    NewTarget(&'ast NewTargetExpression),
    Call(&'ast CallExpression<'ast>),
    New(&'ast NewExpression<'ast>),
    Prefix(&'ast PrefixExpression<'ast>),
    Infix(&'ast InfixExpression<'ast>),
    Postfix(&'ast PostfixExpression<'ast>),
    Assignment(&'ast AssignmentExpression<'ast>),
    Conditional(&'ast ConditionalExpression<'ast>),
    Yield(&'ast YieldExpression<'ast>),
    Comma(&'ast CommaExpression<'ast>),
    AssignmentPattern(&'ast AssignmentPattern<'ast>),
    BindingPattern(&'ast BindingPattern<'ast>),
    JSXFragment(&'ast JSXFragment<'ast>),
    JSXElement(&'ast JSXElement<'ast>),
}

Variants

This(&'ast Keyword)Spread(&'ast SpreadExpression<'ast>)Super(&'ast Keyword)Identifier(&'ast Identifier<'ast>)Null(&'ast LiteralNull)Boolean(&'ast LiteralBoolean)String(&'ast LiteralString<'ast>)Numeric(&'ast LiteralNumeric<'ast>)RegularExpression(&'ast LiteralRegularExpression<'ast>)Template(&'ast LiteralTemplateExpression<'ast>)ArrayLiteral(&'ast ArrayLiteral<'ast>)ObjectLiteral(&'ast ObjectLiteral<'ast>)Function(&'ast FunctionExpression<'ast>)ArrowFunction(&'ast ArrowFunctionExpression<'ast>)Class(&'ast ClassExpression<'ast>)Parenthesized(&'ast ParenthesizedExpression<'ast>)Member(&'ast MemberExpression<'ast>)TaggedTemplate(&'ast TaggedTemplateExpression<'ast>)NewTarget(&'ast NewTargetExpression)Call(&'ast CallExpression<'ast>)New(&'ast NewExpression<'ast>)Prefix(&'ast PrefixExpression<'ast>)Infix(&'ast InfixExpression<'ast>)Postfix(&'ast PostfixExpression<'ast>)Assignment(&'ast AssignmentExpression<'ast>)Conditional(&'ast ConditionalExpression<'ast>)Yield(&'ast YieldExpression<'ast>)Comma(&'ast CommaExpression<'ast>)AssignmentPattern(&'ast AssignmentPattern<'ast>)BindingPattern(&'ast BindingPattern<'ast>)JSXFragment(&'ast JSXFragment<'ast>)JSXElement(&'ast JSXElement<'ast>)

Methods

impl<'ast> Expression<'ast>[src]

pub fn loc(&self) -> Loc[src]

pub fn span(&self) -> Span[src]

pub fn is_primitive_literal(&self) -> bool[src]

pub fn is_numeric_literal(&self) -> bool[src]

pub fn is_identifier(&self) -> bool[src]

pub fn is_prefix_increment(&self) -> bool[src]

pub fn is_prefix_decrement(&self) -> bool[src]

pub fn is_postfix_increment(&self) -> bool[src]

pub fn is_postfix_decrement(&self) -> bool[src]

pub fn is_member_expression(&self) -> bool[src]

pub fn is_comma_expression(&self) -> bool[src]

pub fn is_parenthesized_expression(&self) -> bool[src]

pub fn is_call_expression(&self) -> bool[src]

pub fn is_function_expression(&self) -> bool[src]

pub fn is_arrow_function_expression(&self) -> bool[src]

pub fn is_primary_expression(&self) -> bool[src]

pub fn is_left_hand_side_expression(&self) -> bool[src]

pub fn is_assignment_expression(&self) -> bool[src]

pub fn precedence(&self) -> i8[src]

Trait Implementations

impl<'ast> Transform for Expression<'ast>[src]

type Item = Expression<'ast>

impl<'ast> Copy for Expression<'ast>[src]

impl<'ast> PartialEq<Expression<'ast>> for Expression<'ast>[src]

impl<'ast> Clone for Expression<'ast>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'ast> Debug for Expression<'ast>[src]

Auto Trait Implementations

impl<'ast> Send for Expression<'ast>

impl<'ast> Sync for Expression<'ast>

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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