mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
lift to spaces in ann_lift_to_node default case
This commit is contained in:
parent
d3426ebce1
commit
f233c5328d
5 changed files with 79 additions and 6 deletions
|
@ -427,7 +427,6 @@ fn lower<'a, 'b: 'a>(
|
|||
|
||||
fn fmt_ty_collection(
|
||||
buf: &mut Buf<'_>,
|
||||
|
||||
indent: u16,
|
||||
braces: Braces,
|
||||
items: Collection<'_, Loc<TypeAnnotation<'_>>>,
|
||||
|
@ -1215,11 +1214,14 @@ fn ann_lift_to_node<'a, 'b: 'a>(
|
|||
inner
|
||||
}
|
||||
}
|
||||
_ => Spaces {
|
||||
before: &[],
|
||||
item: Node::TypeAnnotation(*ann),
|
||||
after: &[],
|
||||
},
|
||||
_ => {
|
||||
let lifted = ann_lift_spaces(arena, ann);
|
||||
Spaces {
|
||||
before: lifted.before,
|
||||
item: Node::TypeAnnotation(lifted.item),
|
||||
after: lifted.after,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue