Enum purescript_corefn::Expression [−][src]
pub enum Expression {
Abs {
argument: String,
body: Box<Expression>,
annotation: Annotation,
},
Accessor {
expression: Box<Expression>,
field: String,
annotation: Annotation,
},
App {
abstraction: Box<Expression>,
argument: Box<Expression>,
annotation: Annotation,
},
Case {
alternatives: Vec<Alternative>,
expressions: Vec<Expression>,
annotation: Annotation,
},
Constructor {
name: String,
type_: String,
fields: Vec<String>,
annotation: Annotation,
},
Let {
expression: Box<Expression>,
binds: Vec<Decl>,
annotation: Annotation,
},
Literal {
value: Literal,
annotation: Annotation,
},
Var {
value: ModuleAndIdentifier,
annotation: Annotation,
},
}Variants
AbsFields of Abs
argument: String | |
body: Box<Expression> | |
annotation: Annotation |
AccessorFields of Accessor
expression: Box<Expression> | |
field: String | |
annotation: Annotation |
AppFields of App
abstraction: Box<Expression> | |
argument: Box<Expression> | |
annotation: Annotation |
CaseFields of Case
alternatives: Vec<Alternative> | |
expressions: Vec<Expression> | |
annotation: Annotation |
ConstructorFields of Constructor
name: String | |
type_: String | |
fields: Vec<String> | |
annotation: Annotation |
LetFields of Let
expression: Box<Expression> | |
binds: Vec<Decl> | |
annotation: Annotation |
LiteralFields of Literal
value: Literal | |
annotation: Annotation |
VarFields of Var
value: ModuleAndIdentifier | |
annotation: Annotation |
Trait Implementations
impl Debug for Expression[src]
impl Debug for ExpressionAuto Trait Implementations
impl Send for Expression
impl Send for Expressionimpl Sync for Expression
impl Sync for Expression