diff options
author | Jakub Dupak <dev@jakubdupak.com> | 2022-11-15 15:52:34 +0100 |
---|---|---|
committer | Jakub Dupak <dev@jakubdupak.com> | 2022-11-16 17:59:36 +0100 |
commit | 4c69451b3d46db438a5c2cc436f7b02dbf4bbab2 (patch) | |
tree | 07138aff5c9ca5e20407ec4cae7f3d2039307b58 | |
parent | 0e026b6c33d20a7d1b8714df73e9157ede98af70 (diff) | |
download | gcc-4c69451b3d46db438a5c2cc436f7b02dbf4bbab2.zip gcc-4c69451b3d46db438a5c2cc436f7b02dbf4bbab2.tar.gz gcc-4c69451b3d46db438a5c2cc436f7b02dbf4bbab2.tar.bz2 |
ast: Dump parenthesised type
Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
-rw-r--r-- | gcc/rust/ast/rust-ast-dump.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 0ae57fd..8e06bf3 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1635,8 +1635,15 @@ Dump::visit (TraitObjectType &type) } void -Dump::visit (ParenthesisedType &) -{} +Dump::visit (ParenthesisedType &type) +{ + // Syntax: + // ( Type ) + + stream << "("; + visit (type.get_type_in_parens ()); + stream << ")"; +} void Dump::visit (ImplTraitTypeOneBound &type) |