Enum pomelo_hir::hir::ExprKind
source · pub enum ExprKind {
Missing,
Scon(Scon),
Seq {
exprs: Box<[Idx<Expr>]>,
},
VId {
op: bool,
longvid: (LongVId, DefLoc),
},
Record {
rows: Box<[ExpRow]>,
},
Let {
dec: Idx<Dec>,
expr: Idx<Expr>,
},
Application {
expr: Idx<Expr>,
param: Idx<Expr>,
},
Infix {
lhs: Idx<Expr>,
vid: (VId, DefLoc),
rhs: Idx<Expr>,
},
Typed {
expr: Idx<Expr>,
ty: Idx<Ty>,
},
Handle {
expr: Idx<Expr>,
match_: Box<[MRule]>,
},
Raise {
expr: Idx<Expr>,
},
Fn {
match_: Box<[MRule]>,
},
}
Expand description
Kinds of HIR expressions.
These correspond to the basic forms in Chapter 2 of the Definition, after desugaring the derived forms from Appendix A.