mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-23 01:51:44 +00:00
Implement a migration to new braces syntax and add migrate tests
This commit is contained in:
parent
017fd006c6
commit
109cb93b20
540 changed files with 3425 additions and 2 deletions
|
@ -979,7 +979,7 @@ fn format_str_segment(seg: &StrSegment, buf: &mut Buf) {
|
|||
}
|
||||
}
|
||||
|
||||
fn push_op(buf: &mut Buf, op: BinOp) {
|
||||
pub fn push_op(buf: &mut Buf, op: BinOp) {
|
||||
match op {
|
||||
called_via::BinOp::Caret => buf.push('^'),
|
||||
called_via::BinOp::Star => buf.push('*'),
|
||||
|
|
|
@ -7,6 +7,7 @@ pub mod collection;
|
|||
pub mod def;
|
||||
pub mod expr;
|
||||
pub mod header;
|
||||
pub mod migrate;
|
||||
pub mod node;
|
||||
pub mod pattern;
|
||||
pub mod spaces;
|
||||
|
|
1401
crates/compiler/fmt/src/migrate.rs
Normal file
1401
crates/compiler/fmt/src/migrate.rs
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue