]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: ast: Add Tokenstream visitors for loop expressions
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 22 Mar 2023 15:17:42 +0000 (16:17 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:28:41 +0000 (18:28 +0100)
commit19c93b8286d5ed170c871f99e4beef2e5cf03db4
treebd08e196ab6eaf29a9ab598675ce09ca707ae77d
parent2e08b1d26b82ea19378e052ad30104d4af6b4bf1
gccrs: ast: Add Tokenstream visitors for loop expressions

Add the implementation of tokenstream dump for multiple loop
expressions.

gcc/rust/ChangeLog:

* ast/rust-ast-tokenstream.cc (TokenStream::visit): Add
visitors.
(TokenStream::visit_loop_common): Merge common loop code.
* ast/rust-ast-tokenstream.h: Add function prototypes.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/ast/rust-ast-tokenstream.cc
gcc/rust/ast/rust-ast-tokenstream.h