gccrs: ast: Dump tuple type

gcc/rust/ChangeLog:

	* ast/rust-ast-dump.cc (Dump::visit): Add missing tuple type visitor.

Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
This commit is contained in:
Jakub Dupak
2022-11-06 21:27:49 +01:00
committed by Arthur Cohen
parent c4c859bff8
commit 91409d27d5

View File

@@ -1580,16 +1580,24 @@ Dump::visit (TraitObjectTypeOneBound &)
{}
void
Dump::visit (TupleType &)
{}
Dump::visit (TupleType &type)
{
// Syntax:
// ( )
// | ( ( Type , )+ Type? )
stream << '(';
visit_items_joined_by_separator (type.get_elems (), ", ");
stream << ')';
}
void
Dump::visit (NeverType &)
{
// Syntax:
// !
// Syntax:
// !
stream << '!';
stream << '!';
}
void