pub enum PrimaryExpression<'tree> {
Show 22 variants
Array(Box<Array<'tree>>),
ArrowFunction(Box<ArrowFunction<'tree>>),
CallExpression(Box<CallExpression<'tree>>),
Class(Box<Class<'tree>>),
False(Box<False<'tree>>),
FunctionExpression(Box<FunctionExpression<'tree>>),
GeneratorFunction(Box<GeneratorFunction<'tree>>),
Identifier(Box<Identifier<'tree>>),
MemberExpression(Box<MemberExpression<'tree>>),
MetaProperty(Box<MetaProperty<'tree>>),
Null(Box<Null<'tree>>),
Number(Box<Number<'tree>>),
Object(Box<Object<'tree>>),
ParenthesizedExpression(Box<ParenthesizedExpression<'tree>>),
Regex(Box<Regex<'tree>>),
String(Box<String<'tree>>),
SubscriptExpression(Box<SubscriptExpression<'tree>>),
Super(Box<Super<'tree>>),
TemplateString(Box<TemplateString<'tree>>),
This(Box<This<'tree>>),
True(Box<True<'tree>>),
Undefined(Box<Undefined<'tree>>),
}Variants§
Array(Box<Array<'tree>>)
ArrowFunction(Box<ArrowFunction<'tree>>)
CallExpression(Box<CallExpression<'tree>>)
Class(Box<Class<'tree>>)
False(Box<False<'tree>>)
FunctionExpression(Box<FunctionExpression<'tree>>)
GeneratorFunction(Box<GeneratorFunction<'tree>>)
Identifier(Box<Identifier<'tree>>)
MemberExpression(Box<MemberExpression<'tree>>)
MetaProperty(Box<MetaProperty<'tree>>)
Null(Box<Null<'tree>>)
Number(Box<Number<'tree>>)
Object(Box<Object<'tree>>)
ParenthesizedExpression(Box<ParenthesizedExpression<'tree>>)
Regex(Box<Regex<'tree>>)
String(Box<String<'tree>>)
SubscriptExpression(Box<SubscriptExpression<'tree>>)
Super(Box<Super<'tree>>)
TemplateString(Box<TemplateString<'tree>>)
This(Box<This<'tree>>)
True(Box<True<'tree>>)
Undefined(Box<Undefined<'tree>>)
Trait Implementations§
Source§impl<'tree> Clone for PrimaryExpression<'tree>
impl<'tree> Clone for PrimaryExpression<'tree>
Source§fn clone(&self) -> PrimaryExpression<'tree>
fn clone(&self) -> PrimaryExpression<'tree>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'tree> Debug for PrimaryExpression<'tree>
impl<'tree> Debug for PrimaryExpression<'tree>
Source§impl<'tree> FromNode<'tree> for PrimaryExpression<'tree>
impl<'tree> FromNode<'tree> for PrimaryExpression<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for PrimaryExpression<'tree>
impl<'tree> RefUnwindSafe for PrimaryExpression<'tree>
impl<'tree> Send for PrimaryExpression<'tree>
impl<'tree> Sync for PrimaryExpression<'tree>
impl<'tree> Unpin for PrimaryExpression<'tree>
impl<'tree> UnsafeUnpin for PrimaryExpression<'tree>
impl<'tree> UnwindSafe for PrimaryExpression<'tree>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more