summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-04-02 12:06:07 +0800
committerJohn Hodge <tpg@mutabah.net>2016-04-02 12:06:07 +0800
commitc47ac13386ac5a597ec822ea6d73bf62ca009954 (patch)
tree7fe7dd24850cabf5fafb0a79b1b2531104d35345 /src/main.cpp
parentd5b39c4fcf80a1e84aee6080351dc990c0aa8963 (diff)
downloadmrust-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.cpp3
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);