diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-25 22:04:38 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-25 22:04:38 +0800 |
commit | e7dfda0f39c3d89eaa17c5329a62d2faaa053cfa (patch) | |
tree | 85de7d5dbeb0ace41ee974dc4ccaabbb2381762c /src/ast | |
parent | 36e197f903ba19229b35cdd7c5bea045ca34dcdc (diff) | |
download | mrust-e7dfda0f39c3d89eaa17c5329a62d2faaa053cfa.tar.gz |
Parse - Allow loading modules from macro invocations
Diffstat (limited to 'src/ast')
-rw-r--r-- | src/ast/ast.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ast/ast.hpp b/src/ast/ast.hpp index 99359d6d..2042563e 100644 --- a/src/ast/ast.hpp +++ b/src/ast/ast.hpp @@ -513,6 +513,7 @@ public: throw "";
}
};
+
private:
typedef ::std::vector< Named<UseStmt> > itemlist_use_t;
@@ -539,6 +540,14 @@ private: ::std::vector< Named<MacroRulesPtr> > m_macros;
public:
+ struct FileInfo
+ {
+ bool controls_dir = false;
+ ::std::string path = "!";
+ };
+
+ FileInfo m_file_info;
+
bool m_insert_prelude = true; // Set to false by `#[no_prelude]` handler
char m_index_populated = 0; // 0 = no, 1 = partial, 2 = complete
struct IndexEnt {
|