From 20ee7442f280ced9e5258876f9fd2212797f868b Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 3 Nov 2015 12:25:42 +1100 Subject: Remove embedded spans (will move to wrapping spans) --- src/convert/resolve.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/convert/resolve.cpp') diff --git a/src/convert/resolve.cpp b/src/convert/resolve.cpp index 70bfc080..3119ae37 100644 --- a/src/convert/resolve.cpp +++ b/src/convert/resolve.cpp @@ -607,7 +607,7 @@ void CPathResolver::handle_path_int(AST::Path& path, CASTIterator::PathMode mode { if(path.size() > 1) { auto ty = TypeRef(TypeRef::TagArg(), path[0].name()); - ty.set_span( path.span() ); + //ty.set_span( path.span() ); // Repalce with UFCS auto newpath = AST::Path(AST::Path::TagUfcs(), ty, TypeRef()); newpath.add_tailing(path); @@ -1369,8 +1369,7 @@ void ResolvePaths_HandleModule_Use(const AST::Crate& crate, const AST::Path& mod mod = &crate.get_root_module(i); ), (TypeAlias, - throw ParseError::Todo("Bind to type alias in use resolution"); - //p.bind_type_alias(i); + p.bind_type_alias(i); mod = nullptr; ), (Function, -- cgit v1.2.3