diff options
author | Jakub Dupak <dev@jakubdupak.com> | 2022-11-06 20:54:40 +0100 |
---|---|---|
committer | Jakub Dupak <dev@jakubdupak.com> | 2022-11-16 16:26:45 +0100 |
commit | 0eaaeb4b3592075fe30d3a8aa57941dd40c6f256 (patch) | |
tree | 377274ec7983f874790692e156dc51663d33ee42 /gcc/rust | |
parent | f4d78133368ff453eaf60413c697cf848ad1e17e (diff) | |
download | gcc-0eaaeb4b3592075fe30d3a8aa57941dd40c6f256.zip gcc-0eaaeb4b3592075fe30d3a8aa57941dd40c6f256.tar.gz gcc-0eaaeb4b3592075fe30d3a8aa57941dd40c6f256.tar.bz2 |
ast: Dump array type
Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
Diffstat (limited to 'gcc/rust')
-rw-r--r-- | gcc/rust/ast/rust-ast-dump.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 3f5dada..273a510 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -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 |