aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-expr.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-03-21 10:39:51 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2023-03-30 16:48:26 +0200
commitcf6c77494c09e23aa2108eb238efcae35627e810 (patch)
tree707a62eed5be543668173475edec257fdc511ad3 /gcc/rust/ast/rust-expr.h
parent98735d4fe7f435170d0bbc3e5f8bee0702afe464 (diff)
downloadgcc-cf6c77494c09e23aa2108eb238efcae35627e810.zip
gcc-cf6c77494c09e23aa2108eb238efcae35627e810.tar.gz
gcc-cf6c77494c09e23aa2108eb238efcae35627e810.tar.bz2
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-expr.h')
0 files changed, 0 insertions, 0 deletions