summaryrefslogtreecommitdiff
path: root/src/ast/ast.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-11-12 15:47:46 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-11-12 15:47:46 +0800
commit4912b243930dba3111e090f57f9e3ffa9f7deeb9 (patch)
tree1bcc52a450fef775874e28ecce981117233e4c23 /src/ast/ast.hpp
parentcecb6576bd72f7c2cf560be7ba5ed5900d0a1539 (diff)
downloadmrust-4912b243930dba3111e090f57f9e3ffa9f7deeb9.tar.gz
src - Add draft (untested) support for procedural macro crates
Diffstat (limited to 'src/ast/ast.hpp')
-rw-r--r--src/ast/ast.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ast/ast.hpp b/src/ast/ast.hpp
index 2ef17718..6b729f8c 100644
--- a/src/ast/ast.hpp
+++ b/src/ast/ast.hpp
@@ -534,6 +534,10 @@ public:
::std::unordered_map< ::std::string, IndexEnt > m_type_items;
::std::unordered_map< ::std::string, IndexEnt > m_value_items;
+ // List of macros imported from other modules (via #[macro_use], includes proc macros)
+ // - First value is an absolute path to the macro (including crate name)
+ ::std::vector<::std::pair< ::std::vector<::std::string>, const MacroRules* >> m_macro_imports;
+
public:
Module() {}
Module(::AST::Path path):