diff options
author | John Hodge <tpg@mutabah.net> | 2016-04-02 12:06:07 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-04-02 12:06:07 +0800 |
commit | c47ac13386ac5a597ec822ea6d73bf62ca009954 (patch) | |
tree | 7fe7dd24850cabf5fafb0a79b1b2531104d35345 /src/main.cpp | |
parent | d5b39c4fcf80a1e84aee6080351dc990c0aa8963 (diff) | |
download | mrust-c47ac13386ac5a597ec822ea6d73bf62ca009954.tar.gz |
Resolve - Start building an index of names avaliable in each module
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 38b200d0..34da5cb5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -116,7 +116,8 @@ int main(int argc, char *argv[]) // - This does name checking on types and free functions.
// - Resolves all identifiers/paths to references
CompilePhaseV("Resolve", [&]() {
- Resolve_Use(crate);
+ Resolve_Use(crate); // - Absolutise and resolve use statements
+ Resolve_Index(crate); // - Build up a per-module index of avalable names (faster and simpler later resolve)
//Resolve_Absolutise(crate);
//Resolve_UfcsPaths(crate);
ResolvePaths(crate);
|