mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Implement platform header formatting
This commit is contained in:
parent
f4e29bd267
commit
f25323e8a7
7 changed files with 232 additions and 23 deletions
|
@ -174,7 +174,7 @@ pub struct Effects<'a> {
|
|||
pub spaces_after_type_name: &'a [CommentOrNewline<'a>],
|
||||
pub effect_shortname: &'a str,
|
||||
pub effect_type_name: &'a str,
|
||||
pub entries: &'a [Loc<TypedIdent<'a>>],
|
||||
pub entries: Collection<'a, Loc<TypedIdent<'a>>>,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, PartialEq)]
|
||||
|
|
|
@ -718,7 +718,7 @@ fn effects<'a>() -> impl Parser<'a, Effects<'a>, EEffects<'a>> {
|
|||
spaces_after_type_name,
|
||||
effect_shortname: type_shortname,
|
||||
effect_type_name: type_name,
|
||||
entries: entries.items,
|
||||
entries,
|
||||
},
|
||||
state,
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue