diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-05-12 14:44:54 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:37:19 +0100 |
commit | ec43b2ee8f4b92d073d562849022b90221c27f3e (patch) | |
tree | e418c4013d7018825e86feb241d4d507f8d0c225 /gcc/rust | |
parent | 7c317571911ee3e9525513634c7e6bc6820dca7c (diff) | |
download | gcc-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`.
Diffstat (limited to 'gcc/rust')
-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 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 &) |