diff options
author | Jakub Dupak <dev@jakubdupak.com> | 2022-11-15 15:52:34 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-02-21 12:36:49 +0100 |
commit | e311e9b7c591d0e612c1598c202212da201054a3 (patch) | |
tree | 46532791c121ab0aff2d3e6d3f90538b7bf4a50a | |
parent | 7ed4a0ebc1d1cad10dc879e5ad8ac0fa0f647e9f (diff) | |
download | gcc-e311e9b7c591d0e612c1598c202212da201054a3.zip gcc-e311e9b7c591d0e612c1598c202212da201054a3.tar.gz gcc-e311e9b7c591d0e612c1598c202212da201054a3.tar.bz2 |
gccrs: ast: Dump parenthesised type
gcc/rust/ChangeLog:
* ast/rust-ast-dump.cc (Dump::visit): Add missing visitor.
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) |