summaryrefslogtreecommitdiff
path: root/src/ast/ast.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-26 16:05:59 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-26 16:05:59 +0800
commitcf0bc71ad1bd5a9bc1c9ee19305aec0e31641986 (patch)
tree83ed832002ed45c2137ab71e22f6897d48ea79aa /src/ast/ast.hpp
parentc7ab799892231de0bc91b16637c2f0fce11f3536 (diff)
downloadmrust-cf0bc71ad1bd5a9bc1c9ee19305aec0e31641986.tar.gz
AST - Move module-level macro invocations into the Item list
Diffstat (limited to 'src/ast/ast.hpp')
-rw-r--r--src/ast/ast.hpp4
1 files changed, 1 insertions, 3 deletions
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<const MacroRules*>( mv$(name), &mr, false ) );
}
- void add_macro_invocation(MacroInvocation item) {
- m_macro_invocations.push_back( mv$(item) );
- }