aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast-dump.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-03-24 12:39:48 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:28:41 +0100
commit9761160120e96c4507e29f626f3333e0a97ab9f8 (patch)
treeca0caff390772663cef006b4ae90c9fe426f1d79 /gcc/rust/ast/rust-ast-dump.h
parentac0132918680200f265bf96fe87644a2cb81c22b (diff)
downloadgcc-9761160120e96c4507e29f626f3333e0a97ab9f8.zip
gcc-9761160120e96c4507e29f626f3333e0a97ab9f8.tar.gz
gcc-9761160120e96c4507e29f626f3333e0a97ab9f8.tar.bz2
gccrs: ast: Add TokenStream collect function
Add a function to TokenStream to collect in a single vector all tokens. gcc/rust/ChangeLog: * ast/rust-ast-tokenstream.cc (TokenStream::collect_tokens): Add getter. (TokenStream::go): Rename function. (TokenStream::visit): Likewise. * ast/rust-ast-tokenstream.h: Add collect prototype. 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