diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-03-21 10:39:51 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:28:40 +0100 |
commit | 0bda940f99131a73a008506175759608fb801772 (patch) | |
tree | 234a73b77119520d25fd202947099cbef8b190ae /gcc/rust/ast/rust-ast-dump.h | |
parent | cf311c5324c745e0edde5cd9ed526aea018a169f (diff) | |
download | gcc-0bda940f99131a73a008506175759608fb801772.zip gcc-0bda940f99131a73a008506175759608fb801772.tar.gz gcc-0bda940f99131a73a008506175759608fb801772.tar.bz2 |
gccrs: ast: Add conversion to token stream
Add several functions to convert an ast back to a token stream. This may
be used later either to unify the ast dumping and modifications on ast
nodes in procedural macros.
gcc/rust/ChangeLog:
* Make-lang.in: Add rust-as-tokenstream to compile list.
* ast/rust-item.h: Add missing getter for location.
* ast/rust-ast-tokenstream.cc: Add ast visitor implementation.
* ast/rust-ast-tokenstream.h: New file.
* ast/rust-pattern.h: Add getter.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/ast/rust-ast-dump.h')
0 files changed, 0 insertions, 0 deletions