From: Arthur Cohen Date: Fri, 12 May 2023 12:44:54 +0000 (+0200) Subject: gccrs: dump: Dump `TupleIndexExpr`s X-Git-Tag: basepoints/gcc-15~2544 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec43b2ee8f4b92d073d562849022b90221c27f3e;p=thirdparty%2Fgcc.git gccrs: dump: Dump `TupleIndexExpr`s gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Implement dump for `TupleIndexExpr`. --- 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 &)