Skip to content

Commit

Permalink
Improve CST's RichIr formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Mar 21, 2024
1 parent 720f1c9 commit f0d7741
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/frontend/src/cst/kind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ impl RichIrBuilder {
}
fn push_cst_kind_property(&mut self, property_name: &str, value: impl ToRichIr) {
self.push_newline();
self.push_simple(format!("{property_name}:"));
self.push_simple(format!("{property_name}: "));
value.build_rich_ir(self);
}
}
2 changes: 1 addition & 1 deletion compiler/frontend/src/cst/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl ToRichIr for Cst {
" at {}..{}",
*self.data.span.start, *self.data.span.end
));
builder.push_simple(": ");
builder.push_simple(" of kind ");
self.kind.build_rich_ir(builder);
}
}
Expand Down

0 comments on commit f0d7741

Please sign in to comment.