gccrs: ast: Dump where clause and recursively needed nodes
authorJakub Dupak <dev@jakubdupak.com>
Fri, 4 Nov 2022 22:48:12 +0000 (23:48 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 21 Feb 2023 11:36:46 +0000 (12:36 +0100)
commitbd2240d30f802d86d39f12dc73321cab6aa0a0ee
treecb5183262f30377677cdd066bb01032245b4ecf7
parent907d11194ed94c129cfd2c38c6acc2e3336d6949
gccrs: ast: Dump where clause and recursively needed nodes

This is currently needed for lifetimes to use the existing infrastructure.

gcc/rust/ChangeLog:

* ast/rust-ast-dump.cc (Dump::visit): Add missing visitors.
* ast/rust-ast-dump.h: Likewise.
* ast/rust-ast.h: Add `get_lifetime_bounds` method.
* ast/rust-item.h: Add missing getter for lifetimes.
* ast/rust-type.h: Likewise.

Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
gcc/rust/ast/rust-ast-dump.cc
gcc/rust/ast/rust-ast-dump.h
gcc/rust/ast/rust-ast.h
gcc/rust/ast/rust-item.h
gcc/rust/ast/rust-type.h