mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Refactor: Convert TypeAnnotation::TagUnion to to_node (already working)
This commit is contained in:
parent
95d8fd471b
commit
9ae5dc1bbc
1 changed files with 2 additions and 17 deletions
|
@ -303,23 +303,8 @@ fn fmt_ty_ann(
|
|||
buf.push('_')
|
||||
}
|
||||
|
||||
TypeAnnotation::TagUnion { tags, ext } => {
|
||||
fmt_tag_collection(buf, indent, *tags, newlines);
|
||||
fmt_ext(ext, buf, indent);
|
||||
}
|
||||
|
||||
// TypeAnnotation::Tuple { elems: fields, ext } => {
|
||||
// fmt_ty_collection(buf, indent, Braces::Round, *fields, newlines);
|
||||
// fmt_ext(ext, buf, indent);
|
||||
// }
|
||||
|
||||
// TypeAnnotation::Record { fields, ext } => {
|
||||
// fmt_ty_field_collection(buf, indent, *fields, newlines);
|
||||
// fmt_ext(ext, buf, indent);
|
||||
// }
|
||||
|
||||
// TypeAnnotation::TagUnion { .. } |
|
||||
TypeAnnotation::Tuple { .. }
|
||||
TypeAnnotation::TagUnion { .. }
|
||||
| TypeAnnotation::Tuple { .. }
|
||||
| TypeAnnotation::Record { .. }
|
||||
| TypeAnnotation::Function(..)
|
||||
| TypeAnnotation::As(..) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue