Skip to content

Commit 38f30f4

Browse files
committed
Add match conditions to rich HIR
1 parent 3a05f52 commit 38f30f4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

compiler/frontend/src/hir.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,11 @@ impl ToRichIr for Expression {
690690
pattern.build_rich_ir(builder);
691691
if let Some(condition) = condition {
692692
builder.push(", ", None, EnumSet::empty());
693+
builder.indent();
694+
builder.push_newline();
693695
condition.build_rich_ir(builder);
696+
builder.dedent();
697+
builder.push_newline();
694698
}
695699
builder.push(" ->", None, EnumSet::empty());
696700
builder.push_indented_foldable(|builder| {

0 commit comments

Comments
 (0)