summaryrefslogtreecommitdiff
path: root/convert/resolve.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2014-12-14 13:43:41 +0800
committerJohn Hodge <tpg@mutabah.net>2014-12-14 13:43:41 +0800
commite1a51554c956ccde6a59952a8b9a557df904cf71 (patch)
tree056bd625ab0b6400f618a20e97ec250d910a8959 /convert/resolve.cpp
parent5d29fdaa42c638e9420bd3111fb15f3594342354 (diff)
downloadmrust-e1a51554c956ccde6a59952a8b9a557df904cf71.tar.gz
Compiles again
Diffstat (limited to 'convert/resolve.cpp')
-rw-r--r--convert/resolve.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/convert/resolve.cpp b/convert/resolve.cpp
index 23d49726..29ad8dac 100644
--- a/convert/resolve.cpp
+++ b/convert/resolve.cpp
@@ -1,5 +1,7 @@
+#include "../common.hpp"
#include "../ast/ast.hpp"
+#include "../parse/parseerror.hpp"
// Path resolution checking
void ResolvePaths(AST::Crate& crate);
@@ -17,18 +19,25 @@ public:
void visit(AST::ExprNode::TagNamedValue, AST::ExprNode& node) {
// TODO: Convert into a real absolute path
+ throw ParseError::Todo("CResolvePaths_NodeVisitor::visit(TagNamedValue)");
}
};
+void ResolvePaths_Type(TypeRef& type)
+{
+ // TODO: Convert type into absolute
+ throw ParseError::Todo("ResolvePaths_Type");
+}
+
void ResolvePaths_HandleFunction(const AST::Crate& crate, AST::Function& fcn)
{
fcn.code().visit_nodes( CResolvePaths_NodeVisitor(crate) );
ResolvePaths_Type(fcn.rettype());
- FOREACH(arg, fcn.args())
+ FOREACH_M(AST::Function::Arglist, arg, fcn.args())
{
- ResolvePaths_Type(arg.type());
+ ResolvePaths_Type(arg->second);
}
}