diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-08-02 12:50:06 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:00:27 +0100 |
commit | c2ea7f6f36c48483a1a776fb51e04214d4526724 (patch) | |
tree | 811c4e11350028045b8ecb2b8449b1e503de818e /gcc/rust/ast/rust-macro.h | |
parent | 44ec7404b9a1fb25512bcd262db7e8a1f8248f33 (diff) | |
download | gcc-c2ea7f6f36c48483a1a776fb51e04214d4526724.zip gcc-c2ea7f6f36c48483a1a776fb51e04214d4526724.tar.gz gcc-c2ea7f6f36c48483a1a776fb51e04214d4526724.tar.bz2 |
gccrs: ast: Add `get_kind` method to `MacroRulesDefinition`
gcc/rust/ChangeLog:
* ast/rust-macro.h: Add new method to `MacroRulesDefinition` to allow
getting the `MacroKind` contained.
Diffstat (limited to 'gcc/rust/ast/rust-macro.h')
-rw-r--r-- | gcc/rust/ast/rust-macro.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h index 76d244e..490e812 100644 --- a/gcc/rust/ast/rust-macro.h +++ b/gcc/rust/ast/rust-macro.h @@ -576,6 +576,8 @@ public: return AST::Kind::MACRO_RULES_DEFINITION; } + MacroKind get_kind () const { return kind; } + protected: /* Use covariance to implement clone function as returning this object rather * than base */ |