pub enum PrimaryNode {
Number(NumberLiteralNode),
String(StringLiteralNode),
Boolean(BooleanLiteralNode),
Nil(NilLiteralNode),
Identifier(IdentifierNode),
This(ThisExprNode),
Super(SuperExprNode),
Grouping(GroupingExprNode),
Lambda(LambdaExprNode),
Array(ArrayLiteralExprNode),
Object(ObjectLiteralExprNode),
When(WhenExprNode),
}Variants§
Number(NumberLiteralNode)
String(StringLiteralNode)
Boolean(BooleanLiteralNode)
Nil(NilLiteralNode)
Identifier(IdentifierNode)
This(ThisExprNode)
Super(SuperExprNode)
Grouping(GroupingExprNode)
Lambda(LambdaExprNode)
Array(ArrayLiteralExprNode)
Object(ObjectLiteralExprNode)
When(WhenExprNode)
Implementations§
Source§impl PrimaryNode
impl PrimaryNode
pub fn span(&self) -> SourceSpan
Trait Implementations§
Source§impl Clone for PrimaryNode
impl Clone for PrimaryNode
impl Copy for PrimaryNode
Source§impl Debug for PrimaryNode
impl Debug for PrimaryNode
Source§impl PartialEq for PrimaryNode
impl PartialEq for PrimaryNode
impl StructuralPartialEq for PrimaryNode
Auto Trait Implementations§
impl Freeze for PrimaryNode
impl RefUnwindSafe for PrimaryNode
impl Send for PrimaryNode
impl Sync for PrimaryNode
impl Unpin for PrimaryNode
impl UnsafeUnpin for PrimaryNode
impl UnwindSafe for PrimaryNode
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