diff options
Diffstat (limited to 'gcc/rust/ast/rust-ast-fragment.h')
-rw-r--r-- | gcc/rust/ast/rust-ast-fragment.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-ast-fragment.h b/gcc/rust/ast/rust-ast-fragment.h index daa5112..7d01fd7 100644 --- a/gcc/rust/ast/rust-ast-fragment.h +++ b/gcc/rust/ast/rust-ast-fragment.h @@ -123,13 +123,25 @@ private: void assert_single_fragment (SingleASTNode::NodeType expected) const; }; +enum class InvocKind +{ + Expr, + Semicoloned, +}; + +enum class AsmKind +{ + Global, + Inline +}; + /** * This is the type for transcriber functions found in * rust-macro-builtins.{h,cc}. */ using MacroTranscriberFunc = std::function<tl::optional<Fragment> (location_t, MacroInvocData &, - bool semicolon)>; + InvocKind semicolon)>; } // namespace AST } // namespace Rust |