Fix lambdas, ready for codegen
This commit is contained in:
@@ -22,7 +22,11 @@ char* createCodegenError(SolsNode* node, char* what) {
|
||||
APPEND_ESTR(err, line_buf);
|
||||
APPEND_ESTR(err, "\n\n");
|
||||
|
||||
APPEND_ESTR(err, node->line.content);
|
||||
if (node->line.content == NULL) {
|
||||
APPEND_ESTR(err, "(null line)");
|
||||
} else {
|
||||
APPEND_ESTR(err, node->line.content);
|
||||
}
|
||||
APPEND_ESTR(err, "\n");
|
||||
|
||||
return err.str;
|
||||
@@ -200,6 +204,9 @@ ResultType(SolsType, charptr) getNodeType(SolsNode* node, SolsScope* scope) {
|
||||
}
|
||||
return Success(SolsType, charptr, var->typeinfo);
|
||||
}
|
||||
case SNT_LAMBDA: {
|
||||
return Success(SolsType, charptr, node->as.type);
|
||||
}
|
||||
}
|
||||
return Error(SolsType, charptr, "Not yet implemented");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user