Enum pomelo_parse::ast::expressions::Expr
source · pub enum Expr {
Fn(FnExpr),
Case(CaseExpr),
While(WhileExpr),
If(IfExpr),
Raise(RaiseExpr),
Handle(HandleExpr),
OrElse(OrElseExpr),
AndAlso(AndAlsoExpr),
Typed(TypedExpr),
InfixOrApp(InfixOrAppExpr),
Atomic(AtomicExpr),
}
Variants§
Fn(FnExpr)
Case(CaseExpr)
While(WhileExpr)
If(IfExpr)
Raise(RaiseExpr)
Handle(HandleExpr)
OrElse(OrElseExpr)
AndAlso(AndAlsoExpr)
Typed(TypedExpr)
InfixOrApp(InfixOrAppExpr)
Atomic(AtomicExpr)
Trait Implementations§
source§impl AstNode for Expr
impl AstNode for Expr
type Language = SML
fn can_cast(kind: SyntaxKind) -> bool
fn cast(node: SyntaxNode) -> Option<Self>where
Self: Sized,
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
source§impl From<AndAlsoExpr> for Expr
impl From<AndAlsoExpr> for Expr
source§fn from(x: AndAlsoExpr) -> Self
fn from(x: AndAlsoExpr) -> Self
Converts to this type from the input type.
source§impl From<AtomicExpr> for Expr
impl From<AtomicExpr> for Expr
source§fn from(x: AtomicExpr) -> Self
fn from(x: AtomicExpr) -> Self
Converts to this type from the input type.
source§impl From<HandleExpr> for Expr
impl From<HandleExpr> for Expr
source§fn from(x: HandleExpr) -> Self
fn from(x: HandleExpr) -> Self
Converts to this type from the input type.
source§impl From<InfixOrAppExpr> for Expr
impl From<InfixOrAppExpr> for Expr
source§fn from(x: InfixOrAppExpr) -> Self
fn from(x: InfixOrAppExpr) -> Self
Converts to this type from the input type.
source§impl From<OrElseExpr> for Expr
impl From<OrElseExpr> for Expr
source§fn from(x: OrElseExpr) -> Self
fn from(x: OrElseExpr) -> Self
Converts to this type from the input type.