aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
-rw-r--r--gcc/rust/ast/rust-ast.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h
index 2945cc8..0956657 100644
--- a/gcc/rust/ast/rust-ast.h
+++ b/gcc/rust/ast/rust-ast.h
@@ -933,6 +933,11 @@ public:
// behavior that we have items that can also be expressions?
bool is_item () const override { return true; }
+ virtual std::vector<Attribute> &get_outer_attrs () = 0;
+ virtual const std::vector<Attribute> &get_outer_attrs () const = 0;
+
+ virtual bool has_outer_attrs () const { return !get_outer_attrs ().empty (); }
+
protected:
// Clone function implementation as pure virtual method
virtual Item *clone_item_impl () const = 0;