diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-03-24 12:39:48 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:28:41 +0100 |
commit | 9761160120e96c4507e29f626f3333e0a97ab9f8 (patch) | |
tree | ca0caff390772663cef006b4ae90c9fe426f1d79 /gcc/rust/ast/rust-ast-dump.h | |
parent | ac0132918680200f265bf96fe87644a2cb81c22b (diff) | |
download | gcc-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