gccrs: dump: Dump macro rules definition
commitec28fdb6aad31f5262f8c3e29ec751b41cc3786e
authorArthur Cohen <arthur.cohen@embecosm.com>
Tue, 27 Sep 2022 14:24:59 +0000 (27 16:24 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 21 Feb 2023 11:36:36 +0000 (21 12:36 +0100)
tree53fd1e2a16344f0e2d28445ea9ac07fdc970f314
parente535b7b3e385edbc4cb830328f11fa5492df5d77
gccrs: dump: Dump macro rules definition

gcc/rust/ChangeLog:

* ast/rust-ast-dump.cc (Dump::visit): Add missing visitors for macro definition dumping.
(get_delimiters): New function.
* ast/rust-ast-dump.h: Declare `get_delimiters` and add documentation.
* ast/rust-macro.h: Add `get_token_tree` method.
gcc/rust/ast/rust-ast-dump.cc
gcc/rust/ast/rust-ast-dump.h
gcc/rust/ast/rust-macro.h