From ec43b2ee8f4b92d073d562849022b90221c27f3e Mon Sep 17 00:00:00 2001 From: Arthur Cohen Date: Fri, 12 May 2023 14:44:54 +0200 Subject: [PATCH] gccrs: dump: Dump `TupleIndexExpr`s gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Implement dump for `TupleIndexExpr`. --- gcc/rust/ast/rust-ast-dump.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 78c6a083787f..8db706920c09 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 &) -- 2.47.2