From f2ded787767af76511b44ae6d858299801f55e41 Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 14 Aug 2018 12:37:18 -0700 Subject: [PATCH] ReducedAST: Match -> CaseMatch makes it easier to grep for --- schala-lang/src/reduced_ast.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schala-lang/src/reduced_ast.rs b/schala-lang/src/reduced_ast.rs index 6c322bd..74853b2 100644 --- a/schala-lang/src/reduced_ast.rs +++ b/schala-lang/src/reduced_ast.rs @@ -48,7 +48,7 @@ pub enum Expr { then_clause: Vec, else_clause: Vec, }, - Match { + CaseMatch { cond: Box, alternatives: Vec }, @@ -182,7 +182,7 @@ fn reduce_if_expression(discriminator: &Discriminator, body: &IfExpressionBody, }, ]; - Expr::Match { + Expr::CaseMatch { cond, alternatives, }