mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Introduce Collection as a general abstraction in the ast
This commit is contained in:
parent
ac733b1805
commit
04d4a8ca79
10 changed files with 49 additions and 37 deletions
|
@ -296,13 +296,12 @@ fn type_to_docs(in_func_type_ann: bool, type_annotation: ast::TypeAnnotation) ->
|
|||
ast::TypeAnnotation::Record {
|
||||
fields,
|
||||
ext,
|
||||
final_comments: _,
|
||||
} => {
|
||||
let mut doc_fields = Vec::new();
|
||||
|
||||
let mut any_fields_include_private_tags = false;
|
||||
|
||||
for field in fields {
|
||||
for field in fields.items {
|
||||
match record_field_to_doc(in_func_type_ann, field.value) {
|
||||
None => {
|
||||
any_fields_include_private_tags = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue