diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-12-13 15:47:32 +0800 |
---|---|---|
committer | SimplyTheOther <simplytheother@gmail.com> | 2020-12-13 15:47:32 +0800 |
commit | 6ee2c06c47a905b11ee5b674710df187126203bc (patch) | |
tree | 255f82f294ec703fe6b53e6413e4c1f449f5911e /gcc/rust/ast/rust-macro.h | |
parent | e21c9fe1657303605efeacd4890430e7d40c4c3c (diff) | |
download | gcc-6ee2c06c47a905b11ee5b674710df187126203bc.zip gcc-6ee2c06c47a905b11ee5b674710df187126203bc.tar.gz gcc-6ee2c06c47a905b11ee5b674710df187126203bc.tar.bz2 |
Attempt to fix array parsing errors
Diffstat (limited to 'gcc/rust/ast/rust-macro.h')
-rw-r--r-- | gcc/rust/ast/rust-macro.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h index 5760392..2cae0f9 100644 --- a/gcc/rust/ast/rust-macro.h +++ b/gcc/rust/ast/rust-macro.h @@ -318,6 +318,9 @@ public: std::vector<Attribute> &get_outer_attrs () { return outer_attrs; } const std::vector<Attribute> &get_outer_attrs () const { return outer_attrs; } + std::vector<MacroRule> &get_macro_rules () { return rules; } + const std::vector<MacroRule> &get_macro_rules () const { return rules; } + protected: /* Use covariance to implement clone function as returning this object rather * than base */ @@ -355,6 +358,9 @@ public: void mark_for_strip () override { path = SimplePath::create_empty (); } bool is_marked_for_strip () const override { return path.is_empty (); } + const SimplePath &get_path () const { return path; } + SimplePath &get_path () { return path; } + protected: /* Use covariance to implement clone function as returning this object rather * than base */ |