summaryrefslogtreecommitdiff
path: root/src/ast
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-05-20 15:55:18 +0800
committerJohn Hodge <tpg@mutabah.net>2016-05-20 15:55:18 +0800
commit91e4ab1921467783122eff292359e7e9784508c7 (patch)
tree4c743b4a010cc24d29aa56ddbb2a283467fe2e69 /src/ast
parenta0c013a290f88e4ade34c08ff618d8f1ed3f63f6 (diff)
downloadmrust-91e4ab1921467783122eff292359e7e9784508c7.tar.gz
String primitive, bind pointers in resolve, print macro name in span
Diffstat (limited to 'src/ast')
-rw-r--r--src/ast/ast.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ast/ast.hpp b/src/ast/ast.hpp
index a5d4ec8c..06ff857e 100644
--- a/src/ast/ast.hpp
+++ b/src/ast/ast.hpp
@@ -554,7 +554,8 @@ public:
char m_index_populated = 0; // 0 = no, 1 = partial, 2 = complete
// TODO: Add "namespace" list (separate to types)
struct IndexEnt {
- bool is_pub;
+ bool is_pub; // Used as part of glob import checking
+ bool is_import; // Set if this item has a path that isn't `mod->path() + name`
::AST::Path path;
};
::std::unordered_map< ::std::string, IndexEnt > m_namespace_items;