mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
initial version of annotation formatting
This commit is contained in:
parent
1fc17626d4
commit
672b67d527
5 changed files with 200 additions and 30 deletions
|
@ -660,11 +660,8 @@ fn parse_def_expr<'a>(
|
|||
region: loc_first_pattern.region,
|
||||
};
|
||||
|
||||
// Add the first def to the end of the defs. (It's fine that we
|
||||
// reorder the first one to the end, because canonicalize will
|
||||
// sort all these defs based on their mutual dependencies anyway. Only
|
||||
// their regions will ever be visible to the user.)
|
||||
defs.push(arena.alloc(loc_first_def));
|
||||
// for formatting reasons, we must insert the first def first!
|
||||
defs.insert(0, arena.alloc(loc_first_def));
|
||||
|
||||
Ok((Expr::Defs(defs, arena.alloc(loc_ret)), state))
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue