diff options
author | John Hodge <tpg@mutabah.net> | 2015-03-23 15:00:02 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-03-23 15:00:02 +0800 |
commit | 802c2c5d616d537ed8becea81c2ee6b48ae8f078 (patch) | |
tree | 3af733445b819980c8fa9ed5ec1c2dc4d85e7b20 /src/convert/resolve.cpp | |
parent | d004d8293e289942a99a2137ce0a0455cf078b0d (diff) | |
download | mrust-802c2c5d616d537ed8becea81c2ee6b48ae8f078.tar.gz |
Move item lookup from AST::Path to AST::Module
Diffstat (limited to 'src/convert/resolve.cpp')
-rw-r--r-- | src/convert/resolve.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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<AST::Path> 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);
}
|