From 802c2c5d616d537ed8becea81c2ee6b48ae8f078 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 23 Mar 2015 15:00:02 +0800 Subject: Move item lookup from AST::Path to AST::Module --- src/convert/resolve.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/convert/resolve.cpp') diff --git a/src/convert/resolve.cpp b/src/convert/resolve.cpp index 9439297f..2de4ae44 100644 --- a/src/convert/resolve.cpp +++ b/src/convert/resolve.cpp @@ -450,9 +450,6 @@ void ResolvePaths_HandleModule_Use(const AST::Crate& crate, const AST::Path& mod ::std::vector new_imports; for( auto& imp : mod.imports() ) { - // TODO: Handle 'super' and 'self' imports - // - Any other type of import will be absolute - if( !imp.data.is_absolute() ) { if( imp.data[0].name() == "super" ) { @@ -466,6 +463,7 @@ void ResolvePaths_HandleModule_Use(const AST::Crate& crate, const AST::Path& mod } else { auto newpath = modpath + imp.data; + // TODO: Undo anon modules until item is found DEBUG("Absolutised path " << imp.data << " into " << newpath); imp.data = ::std::move(newpath); } -- cgit v1.2.3