Skip to content

Commit 7f46941

Browse files
committed
Add match conditions to rich HIR
1 parent 8efa234 commit 7f46941

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/frontend/src/hir.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,11 @@ impl ToRichIr for Expression {
624624
pattern.build_rich_ir(builder);
625625
if let Some(condition) = condition {
626626
builder.push(", ", None, EnumSet::empty());
627+
builder.indent();
628+
builder.push_newline();
627629
condition.build_rich_ir(builder);
630+
builder.dedent();
631+
builder.push_newline();
628632
}
629633
builder.push(" ->", None, EnumSet::empty());
630634
builder.indent();

0 commit comments

Comments
 (0)