diff options
Diffstat (limited to 'src/ast')
-rw-r--r-- | src/ast/ast.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ast/ast.hpp b/src/ast/ast.hpp index 4ca16210..fc1a2f73 100644 --- a/src/ast/ast.hpp +++ b/src/ast/ast.hpp @@ -552,8 +552,14 @@ private: public:
char m_index_populated = 0; // 0 = no, 1 = partial, 2 = complete
- ::std::unordered_map< ::std::string, ::std::pair<bool, PathBinding> > m_type_items;
- ::std::unordered_map< ::std::string, ::std::pair<bool, PathBinding> > m_value_items;
+ // TODO: Add "namespace" list (separate to types)
+ struct IndexEnt {
+ bool is_pub;
+ ::AST::Path path;
+ };
+ ::std::unordered_map< ::std::string, IndexEnt > m_namespace_items;
+ ::std::unordered_map< ::std::string, IndexEnt > m_type_items;
+ ::std::unordered_map< ::std::string, IndexEnt > m_value_items;
public:
Module() {}
|