From: Arthur Cohen Date: Wed, 2 Aug 2023 10:50:06 +0000 (+0200) Subject: gccrs: ast: Add `get_kind` method to `MacroRulesDefinition` X-Git-Tag: basepoints/gcc-15~2248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2ea7f6f36c48483a1a776fb51e04214d4526724;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h index 76d244e604e6..490e8121427e 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 */