From 38f30f4eca8c46f3425b2af3a50e4bece1b00a03 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 eec5b4248..d4768e356 100644 --- a/compiler/frontend/src/hir.rs +++ b/compiler/frontend/src/hir.rs @@ -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| {