diff options
Diffstat (limited to 'convert/resolve.cpp')
-rw-r--r-- | convert/resolve.cpp | 13 |
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);
}
}
|