aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-macro.h
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2023-08-02 12:50:06 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:00:27 +0100
commitc2ea7f6f36c48483a1a776fb51e04214d4526724 (patch)
tree811c4e11350028045b8ecb2b8449b1e503de818e /gcc/rust/ast/rust-macro.h
parent44ec7404b9a1fb25512bcd262db7e8a1f8248f33 (diff)
downloadgcc-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.h2
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 */