mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 20:01:22 -05:00
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:
committed by
Arthur Cohen
parent
c4c859bff8
commit
91409d27d5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user