]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: ast: Add `get_kind` method to `MacroRulesDefinition`
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 2 Aug 2023 10:50:06 +0000 (12:50 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:00:27 +0000 (19:00 +0100)
gcc/rust/ChangeLog:

* ast/rust-macro.h: Add new method to `MacroRulesDefinition` to allow
getting the `MacroKind` contained.

gcc/rust/ast/rust-macro.h

index 76d244e604e69aa9ed9a08ef97652152f5ff790c..490e8121427e26b71e104fd61668354becbad9ef 100644 (file)
@@ -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 */