diff options
author | Jakub Dupak <dev@jakubdupak.com> | 2022-11-04 23:48:12 +0100 |
---|---|---|
committer | Jakub Dupak <dev@jakubdupak.com> | 2022-11-15 11:52:05 +0100 |
commit | 22977337faf0c1a80af36b00249aed30fa586f2d (patch) | |
tree | 292bb3744e1908b39e0bfbfdb1e54aab3e2d2760 /gcc/rust/ast/rust-ast.h | |
parent | 7264aac826e5bec3861331af736cadeef123b277 (diff) | |
download | gcc-22977337faf0c1a80af36b00249aed30fa586f2d.zip gcc-22977337faf0c1a80af36b00249aed30fa586f2d.tar.gz gcc-22977337faf0c1a80af36b00249aed30fa586f2d.tar.bz2 |
ast: Dump where clause and recursively needed nodes
This is currently needed for lifetimes to use the existing infrastructure.
Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index e0e10dc..fc7af58e 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -1310,6 +1310,8 @@ public: // Returns whether the lifetime param has any lifetime bounds. bool has_lifetime_bounds () const { return !lifetime_bounds.empty (); } + std::vector<Lifetime> &get_lifetime_bounds () { return lifetime_bounds; } + // Returns whether the lifetime param has an outer attribute. bool has_outer_attribute () const { return !outer_attr.is_empty (); } |