From c2ea7f6f36c48483a1a776fb51e04214d4526724 Mon Sep 17 00:00:00 2001 From: Arthur Cohen Date: Wed, 2 Aug 2023 12:50:06 +0200 Subject: 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. --- gcc/rust/ast/rust-macro.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc') 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 */ -- cgit v1.1