mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-28 08:53:44 +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
|
@ -394,10 +394,11 @@ fn ability_member_type_to_docs(
|
|||
let has_clauses = has_clauses
|
||||
.iter()
|
||||
.map(|hc| {
|
||||
let ast::HasClause { var, ability } = hc.value;
|
||||
let ast::HasClause { var, abilities } = hc.value;
|
||||
(
|
||||
var.value.extract_spaces().item.to_string(),
|
||||
type_to_docs(false, ability.value),
|
||||
// TODO(abilities)
|
||||
type_to_docs(false, abilities[0].value),
|
||||
)
|
||||
})
|
||||
.collect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue