gccrs: ast: Dump array type

gcc/rust/ChangeLog:

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

Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
This commit is contained in:
Jakub Dupak
2022-11-06 20:54:40 +01:00
committed by Arthur Cohen
parent 59fb0747cc
commit 140a2aed7e

View File

@@ -1600,7 +1600,14 @@ Dump::visit (ReferenceType &type)
void
Dump::visit (ArrayType &type)
{
// Syntax:
// [ Type ; Expression ]
stream << '[';
visit (type.get_elem_type ());
stream << "; ";
visit(type.get_size_expr());
stream << ']';
}
void