[−][src]Enum ecmascript::ast::expression::Expression
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>
fn transform(&mut self, target: ECMAScriptVersion) -> Self::Item
[src]
impl<'ast> Copy for Expression<'ast>
[src]
impl<'ast> PartialEq<Expression<'ast>> for Expression<'ast>
[src]
fn eq(&self, other: &Expression<'ast>) -> bool
[src]
fn ne(&self, other: &Expression<'ast>) -> bool
[src]
impl<'ast> Clone for Expression<'ast>
[src]
fn clone(&self) -> 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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,