pub enum Expr<'a> {
Show 37 variants This(&'a ThisExpr<'a>), Array(&'a ArrayLit<'a>), Object(&'a ObjectLit<'a>), Fn(&'a FnExpr<'a>), Unary(&'a UnaryExpr<'a>), Update(&'a UpdateExpr<'a>), Bin(&'a BinExpr<'a>), Assign(&'a AssignExpr<'a>), Member(&'a MemberExpr<'a>), SuperProp(&'a SuperPropExpr<'a>), Cond(&'a CondExpr<'a>), Call(&'a CallExpr<'a>), New(&'a NewExpr<'a>), Seq(&'a SeqExpr<'a>), Ident(&'a Ident<'a>), Lit(Lit<'a>), Tpl(&'a Tpl<'a>), TaggedTpl(&'a TaggedTpl<'a>), Arrow(&'a ArrowExpr<'a>), Class(&'a ClassExpr<'a>), Yield(&'a YieldExpr<'a>), MetaProp(&'a MetaPropExpr<'a>), Await(&'a AwaitExpr<'a>), Paren(&'a ParenExpr<'a>), JSXMember(&'a JSXMemberExpr<'a>), JSXNamespacedName(&'a JSXNamespacedName<'a>), JSXEmpty(&'a JSXEmptyExpr<'a>), JSXElement(&'a JSXElement<'a>), JSXFragment(&'a JSXFragment<'a>), TsTypeAssertion(&'a TsTypeAssertion<'a>), TsConstAssertion(&'a TsConstAssertion<'a>), TsNonNull(&'a TsNonNullExpr<'a>), TsAs(&'a TsAsExpr<'a>), TsInstantiation(&'a TsInstantiation<'a>), PrivateName(&'a PrivateName<'a>), OptChain(&'a OptChainExpr<'a>), Invalid(&'a Invalid<'a>),
}

Variants

This(&'a ThisExpr<'a>)

Array(&'a ArrayLit<'a>)

Object(&'a ObjectLit<'a>)

Fn(&'a FnExpr<'a>)

Unary(&'a UnaryExpr<'a>)

Update(&'a UpdateExpr<'a>)

++v, --v, v++, v--

Bin(&'a BinExpr<'a>)

Assign(&'a AssignExpr<'a>)

Member(&'a MemberExpr<'a>)

A member expression. If computed is true, the node corresponds to a computed (a[b]) member expression and property is an Expression. If computed is false, the node corresponds to a static (a.b) member expression and property is an Identifier.

SuperProp(&'a SuperPropExpr<'a>)

Cond(&'a CondExpr<'a>)

true ? ‘a’ : ‘b’

Call(&'a CallExpr<'a>)

New(&'a NewExpr<'a>)

new Cat()

Seq(&'a SeqExpr<'a>)

Ident(&'a Ident<'a>)

Lit(Lit<'a>)

Tpl(&'a Tpl<'a>)

TaggedTpl(&'a TaggedTpl<'a>)

Arrow(&'a ArrowExpr<'a>)

Class(&'a ClassExpr<'a>)

Yield(&'a YieldExpr<'a>)

MetaProp(&'a MetaPropExpr<'a>)

Await(&'a AwaitExpr<'a>)

Paren(&'a ParenExpr<'a>)

JSXMember(&'a JSXMemberExpr<'a>)

JSXNamespacedName(&'a JSXNamespacedName<'a>)

JSXEmpty(&'a JSXEmptyExpr<'a>)

JSXElement(&'a JSXElement<'a>)

JSXFragment(&'a JSXFragment<'a>)

TsTypeAssertion(&'a TsTypeAssertion<'a>)

TsConstAssertion(&'a TsConstAssertion<'a>)

TsNonNull(&'a TsNonNullExpr<'a>)

TsAs(&'a TsAsExpr<'a>)

TsInstantiation(&'a TsInstantiation<'a>)

PrivateName(&'a PrivateName<'a>)

OptChain(&'a OptChainExpr<'a>)

Invalid(&'a Invalid<'a>)

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Gets the previous siblings in the order they appear in the file.

Gets the next siblings in the order they appear in the file.

Gets the root node.

Gets the root node if the view was created from a Module; otherwise panics.

Gets the root node if the view was created from a Script; otherwise panics.

Gets the previous tokens in the order they appear in the file.

Gets the next tokens in the order they appear in the file.

Get span of self.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. 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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more