context.thread = true;
- this.report = new ValaSourceReport(this.file);
- context.report = this.report;
-
+
context.basedir = "/tmp"; //Posix.realpath (".");
Vala.CodeContext.pop ();
- return this.report.line_errors;
+ return;
}
if (context.report.get_errors () > 0) {
Vala.CodeContext.pop ();
- return this.report.line_errors;
+ return ;
}
#endif
*/
+
+
+ context.resolver.resolve(new Vala.CodeContext());
+ context.analyzer.context = null;
+ context.flow_analyzer.analyze(new Vala.CodeContext());
+ //context.analyzer = null; << private
Vala.CodeContext.pop ();
- //(new Vala.CodeNode()).get_error_types().clear();
- //(new Vala.NullType()).get_type_arguments().clear();
print("%s\n", valac);
print("ALL OK?\n");
int main (string[] args) {
for (var i = 0;i < 1000;i++) {
- var a = new TestCompiler(file);
- a.compileString();
+ var a = new Palete.TestCompiler("/home/alan/gitlive/app.Builder.js/tests/TestCompiler.vala");
+ a.checkString();
}
return 0;
}