aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast.h
diff options
context:
space:
mode:
authorJakub Dupak <dev@jakubdupak.com>2022-11-04 23:48:12 +0100
committerJakub Dupak <dev@jakubdupak.com>2022-11-15 11:52:05 +0100
commit22977337faf0c1a80af36b00249aed30fa586f2d (patch)
tree292bb3744e1908b39e0bfbfdb1e54aab3e2d2760 /gcc/rust/ast/rust-ast.h
parent7264aac826e5bec3861331af736cadeef123b277 (diff)
downloadgcc-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.h2
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 (); }