From 7c03c7d73ccba10b33e63452bea148febdc22c1a Mon Sep 17 00:00:00 2001 From: Arthur Cohen Date: Fri, 12 May 2023 14:44:54 +0200 Subject: 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(-) (limited to 'gcc') diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 0c1ed75..0695b76 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 &) -- cgit v1.1