From 7f469410d7dc089f508310ea9cbd7b72e034538c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Pottb=C3=A4cker?= <1104693+fpottbaecker@users.noreply.github.com> Date: Sun, 7 Jan 2024 00:06:24 +0100 Subject: [PATCH] Add match conditions to rich HIR --- compiler/frontend/src/hir.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/frontend/src/hir.rs b/compiler/frontend/src/hir.rs index f35a8a9de..34289ddcf 100644 --- a/compiler/frontend/src/hir.rs +++ b/compiler/frontend/src/hir.rs @@ -624,7 +624,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.indent();