aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-06-21 23:47:14 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2023-06-29 12:30:17 +0000
commitbfc620f80a6c68b31b2f44c1646968d47228913d (patch)
tree76f016c58fa480c2acc71ca4aa82cb4659201ba2 /gcc/rust/resolve
parent31d13f10b6cab68ccfca9a789ffee681aebec6da (diff)
downloadgcc-bfc620f80a6c68b31b2f44c1646968d47228913d.zip
gcc-bfc620f80a6c68b31b2f44c1646968d47228913d.tar.gz
gcc-bfc620f80a6c68b31b2f44c1646968d47228913d.tar.bz2
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/resolve')
0 files changed, 0 insertions, 0 deletions