From cf0bc71ad1bd5a9bc1c9ee19305aec0e31641986 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 26 Sep 2016 16:05:59 +0800 Subject: AST - Move module-level macro invocations into the Item list --- src/ast/ast.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/ast/ast.hpp') diff --git a/src/ast/ast.hpp b/src/ast/ast.hpp index 533832e2..1b5a04d0 100644 --- a/src/ast/ast.hpp +++ b/src/ast/ast.hpp @@ -517,6 +517,7 @@ public: void add_item(bool is_pub, ::std::string name, Item it, MetaItems attrs); void add_ext_crate(bool is_public, ::std::string ext_name, ::std::string imp_name, MetaItems attrs); void add_alias(bool is_public, UseStmt path, ::std::string name, MetaItems attrs); + void add_macro_invocation(MacroInvocation item); void add_impl(Impl impl) { m_impls.emplace_back( mv$(impl) ); @@ -528,9 +529,6 @@ public: void add_macro_import(::std::string name, const MacroRules& mr) { m_macro_import_res.push_back( NamedNS( mv$(name), &mr, false ) ); } - void add_macro_invocation(MacroInvocation item) { - m_macro_invocations.push_back( mv$(item) ); - } -- cgit v1.2.3