Coalesce inline and normal alias headers

Unifies `As` annotations and `Alias` defs to use a common struct for
defining alias header information, i.e. the name and type variables of
the alias.
This commit is contained in:
ayazhafiz 2021-12-26 09:37:35 -06:00
parent 597a1cef3b
commit 966198a6e7
11 changed files with 61 additions and 27 deletions

View file

@ -254,7 +254,8 @@ impl<'a> Formattable for TypeAnnotation<'a> {
buf.push_str(name.value);
for var in *vars {
buf.spaces(1);
buf.push_str(var.value);
var.value
.format_with_options(buf, Parens::NotNeeded, Newlines::No, indent);
}
}