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> | 2023-03-30 16:48:27 +0200 |
commit | 1bc503fe37d24aab6cab0df0a427cb1793c084e8 (patch) | |
tree | 5802202a5a86949d862285279cb7b7b9d40c59ed /gcc/rust/resolve | |
parent | ea248799f7864094946c90ae793efb55d03ffc64 (diff) | |
download | gcc-1bc503fe37d24aab6cab0df0a427cb1793c084e8.zip gcc-1bc503fe37d24aab6cab0df0a427cb1793c084e8.tar.gz gcc-1bc503fe37d24aab6cab0df0a427cb1793c084e8.tar.bz2 |
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/resolve')
0 files changed, 0 insertions, 0 deletions