Skip to content

Commit

Permalink
Add match conditions to rich HIR
Browse files Browse the repository at this point in the history
  • Loading branch information
fpottbaecker committed Mar 28, 2024
1 parent 3a05f52 commit 38f30f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/frontend/src/hir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,11 @@ impl ToRichIr for Expression {
pattern.build_rich_ir(builder);
if let Some(condition) = condition {
builder.push(", ", None, EnumSet::empty());
builder.indent();
builder.push_newline();
condition.build_rich_ir(builder);
builder.dedent();
builder.push_newline();
}
builder.push(" ->", None, EnumSet::empty());
builder.push_indented_foldable(|builder| {
Expand Down

0 comments on commit 38f30f4

Please sign in to comment.