diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-02-23 16:59:20 +0100 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-02-24 14:43:01 +0000 |
commit | 9a0f9fb8ba2140fb365b9c771c733401de929ff2 (patch) | |
tree | 160a9a66c37ca9b88130b98525750a94ffad816f /gcc/rust/ast/rust-ast-dump.cc | |
parent | 782d6d062dddb6821ff492b316c7cb02eb6aff52 (diff) | |
download | gcc-9a0f9fb8ba2140fb365b9c771c733401de929ff2.zip gcc-9a0f9fb8ba2140fb365b9c771c733401de929ff2.tar.gz gcc-9a0f9fb8ba2140fb365b9c771c733401de929ff2.tar.bz2 |
ast: Add proper visitors for ExternalTypeItem
gcc/rust/ChangeLog:
* ast/rust-item.h: Add non-const `get_visibility` to ExternalTypeItem.
* ast/rust-ast-dump.cc (Dump::visit): Add implementation for ExternalTypeItem.
* expand/rust-attribute-visitor.cc (AttrVisitor::visit): Likewise.
Diffstat (limited to 'gcc/rust/ast/rust-ast-dump.cc')
-rw-r--r-- | gcc/rust/ast/rust-ast-dump.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 1fd312a..1cfcebb 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1434,7 +1434,11 @@ Dump::visit (TraitImpl &impl) void Dump::visit (ExternalTypeItem &type) -{} +{ + visit (type.get_visibility ()); + + stream << "type " << type.get_identifier () << ';'; +} void Dump::visit (ExternalStaticItem &) |