summaryrefslogtreecommitdiff
path: root/src/ast
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-12-29 16:55:27 +0800
committerJohn Hodge <tpg@mutabah.net>2018-12-29 16:55:27 +0800
commitcdedfd8738aa488f7b87fd65ac8ab160c0947b18 (patch)
tree8aede68f2c1a317adac1e69e7ea757dce8c1310e /src/ast
parentbe45bb67e1cbcb3c68cdf6f5c9353ce98c67ee2e (diff)
downloadmrust-cdedfd8738aa488f7b87fd65ac8ab160c0947b18.tar.gz
Resolve/HIR - Rough handling of `pub use macro_path;`
Diffstat (limited to 'src/ast')
-rw-r--r--src/ast/ast.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ast/ast.hpp b/src/ast/ast.hpp
index 2d802f53..b80b5fb7 100644
--- a/src/ast/ast.hpp
+++ b/src/ast/ast.hpp
@@ -537,7 +537,13 @@ public:
// 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;
+ struct MacroImport {
+ bool is_pub;
+ ::std::string name; // Can be different, if `use foo as bar` is used
+ ::std::vector<::std::string> path; // includes the crate name
+ const MacroRules* macro_ptr;
+ };
+ ::std::vector<MacroImport> m_macro_imports;
public:
Module() {}