diff options
author | John Hodge <tpg@mutabah.net> | 2016-03-30 20:29:42 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-03-30 20:29:42 +0800 |
commit | 0397724cfdbff39773ecc825dc25917b860ee982 (patch) | |
tree | 7a8bbd5475c6a743bbba1b113c2c7c33163c3bfa /src/resolve | |
parent | 8f77e93357eeb45a31b14af91cd749a379da5179 (diff) | |
download | mrust-0397724cfdbff39773ecc825dc25917b860ee982.tar.gz |
AST - Path binding clone
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/use.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve/use.cpp b/src/resolve/use.cpp index 254a2374..77304c1e 100644 --- a/src/resolve/use.cpp +++ b/src/resolve/use.cpp @@ -145,6 +145,7 @@ void Resolve_Use_Mod(const ::AST::Crate& crate, ::AST::Module& mod, ::AST::Path if( imp.data.binding().is_Unbound() ) { DEBUG(" > Needs resolve"); const Span sp2; + // TODO: Handle possibility of recursion return Resolve_Use_GetBinding(sp2, crate, Resolve_Use_AbsolutisePath(sp2, mod.path(), imp.data)); } else { @@ -158,6 +159,7 @@ void Resolve_Use_Mod(const ::AST::Crate& crate, ::AST::Module& mod, ::AST::Path const auto* binding = &imp.data.binding(); if( binding->is_Unbound() ) { DEBUG("Temp resolving wildcard " << imp.data); + // TODO: Handle possibility of recursion binding_ = Resolve_Use_GetBinding(sp2, crate, Resolve_Use_AbsolutisePath(sp2, mod.path(), imp.data)); binding = &binding_; } |