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