mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
format as
aliases with parens
This commit is contained in:
parent
cbdf3f0378
commit
eb08c12099
1 changed files with 3 additions and 2 deletions
|
@ -263,8 +263,9 @@ impl<'a> Formattable for TypeAnnotation<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
As(lhs, _spaces, AliasHeader { name, vars }) => {
|
As(lhs, _spaces, AliasHeader { name, vars }) => {
|
||||||
// TODO use spaces?
|
// TODO use _spaces?
|
||||||
lhs.value.format(buf, indent);
|
lhs.value
|
||||||
|
.format_with_options(buf, Parens::InFunctionType, Newlines::No, indent);
|
||||||
buf.spaces(1);
|
buf.spaces(1);
|
||||||
buf.push_str("as");
|
buf.push_str("as");
|
||||||
buf.spaces(1);
|
buf.spaces(1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue