diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-11-12 15:47:46 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-11-12 15:47:46 +0800 |
commit | 4912b243930dba3111e090f57f9e3ffa9f7deeb9 (patch) | |
tree | 1bcc52a450fef775874e28ecce981117233e4c23 /src/ast/ast.hpp | |
parent | cecb6576bd72f7c2cf560be7ba5ed5900d0a1539 (diff) | |
download | mrust-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.hpp | 4 |
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): |