ReducedAST: Match -> CaseMatch
makes it easier to grep for
This commit is contained in:
parent
9debdd8d66
commit
f2ded78776
@ -48,7 +48,7 @@ pub enum Expr {
|
|||||||
then_clause: Vec<Stmt>,
|
then_clause: Vec<Stmt>,
|
||||||
else_clause: Vec<Stmt>,
|
else_clause: Vec<Stmt>,
|
||||||
},
|
},
|
||||||
Match {
|
CaseMatch {
|
||||||
cond: Box<Expr>,
|
cond: Box<Expr>,
|
||||||
alternatives: Vec<Alternative>
|
alternatives: Vec<Alternative>
|
||||||
},
|
},
|
||||||
@ -182,7 +182,7 @@ fn reduce_if_expression(discriminator: &Discriminator, body: &IfExpressionBody,
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
Expr::Match {
|
Expr::CaseMatch {
|
||||||
cond,
|
cond,
|
||||||
alternatives,
|
alternatives,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user