aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/tree/rust-hir.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-06-21 23:47:14 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:46:31 +0100
commitddc51b22bd8fff3a667cc9429aed5dfd5a6d9777 (patch)
tree6c410debd5842cfc0d31dca114f7a05da55e6ab6 /gcc/rust/hir/tree/rust-hir.h
parentb6a783c4815703ff231cf1708ec1931d47ad4202 (diff)
downloadgcc-ddc51b22bd8fff3a667cc9429aed5dfd5a6d9777.zip
gcc-ddc51b22bd8fff3a667cc9429aed5dfd5a6d9777.tar.gz
gcc-ddc51b22bd8fff3a667cc9429aed5dfd5a6d9777.tar.bz2
gccrs: dump: Replace ast dump internals
Replace ast dump visitor with call to token collector. gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::visit): Add a visit function for visitable abstract class so we can call a dump on any visitable item. * ast/rust-ast-collector.h: Add new visit function prototype. * ast/rust-ast-dump.cc (Dump::go): Add call to process function. (Dump::visit): Remove functions. (Dump::visit_items_joined_by_separator): Likewise. (Dump::visit_as_line): Likewise. (Dump::visit_items_as_lines): Likewise. (Dump::visit_items_as_block): Likewise. (Dump::visit_function_common): Likewise. (get_delimiters): Likewise. (Dump::debug): Update with call to tokencollector. * ast/rust-ast-dump.h (RUST_AST_DUMP_H): Move include directives. (class Dump): Remove multiple prototypes and add generic process function. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir/tree/rust-hir.h')
0 files changed, 0 insertions, 0 deletions