Enum pomelo_parse::ast::declarations::Dec
source · pub enum Dec {
Show 13 variants
Val(ValDec),
Fun(FunDec),
Type(TypeDec),
Datatype(DatatypeDec),
DatatypeRep(DatatypeRepDec),
Abstype(AbstypeDec),
Exception(ExceptionDec),
Local(LocalDec),
Open(OpenDec),
Seq(SeqDec),
Infix(InfixDec),
Infixr(InfixrDec),
Nonfix(NonfixDec),
}
Variants§
Val(ValDec)
Fun(FunDec)
Type(TypeDec)
Datatype(DatatypeDec)
DatatypeRep(DatatypeRepDec)
Abstype(AbstypeDec)
Exception(ExceptionDec)
Local(LocalDec)
Open(OpenDec)
Seq(SeqDec)
Infix(InfixDec)
Infixr(InfixrDec)
Nonfix(NonfixDec)
Trait Implementations§
source§impl AstNode for Dec
impl AstNode for Dec
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<AbstypeDec> for Dec
impl From<AbstypeDec> for Dec
source§fn from(x: AbstypeDec) -> Self
fn from(x: AbstypeDec) -> Self
Converts to this type from the input type.
source§impl From<DatatypeDec> for Dec
impl From<DatatypeDec> for Dec
source§fn from(x: DatatypeDec) -> Self
fn from(x: DatatypeDec) -> Self
Converts to this type from the input type.
source§impl From<DatatypeRepDec> for Dec
impl From<DatatypeRepDec> for Dec
source§fn from(x: DatatypeRepDec) -> Self
fn from(x: DatatypeRepDec) -> Self
Converts to this type from the input type.
source§impl From<ExceptionDec> for Dec
impl From<ExceptionDec> for Dec
source§fn from(x: ExceptionDec) -> Self
fn from(x: ExceptionDec) -> Self
Converts to this type from the input type.