aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast-tokenstream.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-03-23 11:02:47 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2023-03-30 16:48:27 +0200
commit2ca2aaeae07d8187f297008fe19e6306919d39fc (patch)
tree205d7eabe6cbfef0543905f7f11550c36c393008 /gcc/rust/ast/rust-ast-tokenstream.h
parentbea0c13139d48294d26f0a72401d6e3fb6a48d77 (diff)
downloadgcc-2ca2aaeae07d8187f297008fe19e6306919d39fc.zip
gcc-2ca2aaeae07d8187f297008fe19e6306919d39fc.tar.gz
gcc-2ca2aaeae07d8187f297008fe19e6306919d39fc.tar.bz2
ast: Implement remaining expr TokenStream visitor
Implement the missing expression functions visitors for TokenStream. gcc/rust/ChangeLog: * ast/rust-ast-tokenstream.cc (TokenStream::visit): Add visitors. (TokenStream::visit_closure_common): Merge common code for closure visitors. * ast/rust-ast-tokenstream.h: Add function prototype. * ast/rust-expr.h: Add missing move attribute getter. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/ast/rust-ast-tokenstream.h')
-rw-r--r--gcc/rust/ast/rust-ast-tokenstream.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast-tokenstream.h b/gcc/rust/ast/rust-ast-tokenstream.h
index c8a6982..bf3e0b2 100644
--- a/gcc/rust/ast/rust-ast-tokenstream.h
+++ b/gcc/rust/ast/rust-ast-tokenstream.h
@@ -94,6 +94,8 @@ private:
void visit_function_common (std::unique_ptr<Type> &return_type,
std::unique_ptr<BlockExpr> &block);
+ void visit_closure_common (ClosureExpr &expr);
+
void visit_loop_common (BaseLoopExpr &expr);
void visit (LoopLabel &label);
@@ -170,6 +172,7 @@ private:
void visit (CallExpr &expr);
void visit (MethodCallExpr &expr);
void visit (FieldAccessExpr &expr);
+ void visit (ClosureParam &param);
void visit (ClosureExprInner &expr);
void visit (BlockExpr &expr);
void visit (ClosureExprInnerTyped &expr);
@@ -195,6 +198,8 @@ private:
void visit (IfLetExprConseqElse &expr);
void visit (IfLetExprConseqIf &expr);
void visit (IfLetExprConseqIfLet &expr);
+ void visit (MatchArm &arm);
+ void visit (MatchCase &arm);
void visit (MatchExpr &expr);
void visit (AwaitExpr &expr);
void visit (AsyncBlockExpr &expr);