Introduce Collection as a general abstraction in the ast

This commit is contained in:
Joshua Warner 2021-11-11 14:24:15 -08:00
parent ac733b1805
commit 04d4a8ca79
10 changed files with 49 additions and 37 deletions

View file

@ -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;