aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2023-05-12 14:44:54 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:37:19 +0100
commitec43b2ee8f4b92d073d562849022b90221c27f3e (patch)
treee418c4013d7018825e86feb241d4d507f8d0c225
parent7c317571911ee3e9525513634c7e6bc6820dca7c (diff)
downloadgcc-ec43b2ee8f4b92d073d562849022b90221c27f3e.zip
gcc-ec43b2ee8f4b92d073d562849022b90221c27f3e.tar.gz
gcc-ec43b2ee8f4b92d073d562849022b90221c27f3e.tar.bz2
gccrs: dump: Dump `TupleIndexExpr`s
gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Implement dump for `TupleIndexExpr`.
-rw-r--r--gcc/rust/ast/rust-ast-dump.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc
index 78c6a08..8db7069 100644
--- a/gcc/rust/ast/rust-ast-dump.cc
+++ b/gcc/rust/ast/rust-ast-dump.cc
@@ -782,8 +782,11 @@ Dump::visit (TupleExpr &)
{}
void
-Dump::visit (TupleIndexExpr &)
-{}
+Dump::visit (TupleIndexExpr &expr)
+{
+ visit (expr.get_tuple_expr ());
+ stream << '.' << expr.get_tuple_index ();
+}
void
Dump::visit (StructExprStruct &)