diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-05-12 14:44:54 +0200 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-05-16 13:20:49 +0000 |
commit | 7c03c7d73ccba10b33e63452bea148febdc22c1a (patch) | |
tree | 9336cfa0e14bbffd31808383dfe621b61adbebc4 | |
parent | e02b4427f87be6d5f433e1965d36b3f197fca90f (diff) | |
download | gcc-7c03c7d73ccba10b33e63452bea148febdc22c1a.zip gcc-7c03c7d73ccba10b33e63452bea148febdc22c1a.tar.gz gcc-7c03c7d73ccba10b33e63452bea148febdc22c1a.tar.bz2 |
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.cc | 7 |
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 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 &) |