mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Support parsing multiple abilities in a clause
This commit is contained in:
parent
bdc565762b
commit
548a235c25
14 changed files with 165 additions and 95 deletions
|
@ -546,7 +546,8 @@ impl<'a> Formattable for Tag<'a> {
|
|||
|
||||
impl<'a> Formattable for HasClause<'a> {
|
||||
fn is_multiline(&self) -> bool {
|
||||
self.ability.is_multiline()
|
||||
// TODO(abilities)
|
||||
self.abilities[0].is_multiline()
|
||||
}
|
||||
|
||||
fn format_with_options<'buf>(
|
||||
|
@ -560,8 +561,8 @@ impl<'a> Formattable for HasClause<'a> {
|
|||
buf.spaces(1);
|
||||
buf.push_str("has");
|
||||
buf.spaces(1);
|
||||
self.ability
|
||||
.format_with_options(buf, parens, newlines, indent);
|
||||
// TODO(abilities)
|
||||
self.abilities[0].format_with_options(buf, parens, newlines, indent);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue