Fix AST visitor

This commit is contained in:
Greg Shuflin 2021-10-26 01:03:06 -07:00
parent a03f570266
commit e52d0bf515

View File

@ -178,8 +178,12 @@ fn walk_if_expr_body<V: ASTVisitor>(v: &mut V, body: &IfExpressionBody) {
Condition::Expression(ref expr) => { Condition::Expression(ref expr) => {
walk_expression(v, expr); walk_expression(v, expr);
} }
_ => (), Condition::Else => (),
} }
if let Some(ref guard) = arm.guard {
walk_expression(v, &guard);
}
walk_block(v, &arm.body);
} }
} }
} }