-// valac TreeBuilder.vala --pkg libvala-0.24 --pkg posix -o /tmp/treebuilder
+// valac TestCompiler.vala --pkg libvala-0.26 --pkg posix -o /tmp/TestCompiler
namespace Palete {
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 ;
}
int main (string[] args) {
for (var i = 0;i < 1000;i++) {
- var a = new TestCompiler(file);
+ var a = new Palete.TestCompiler("/home/alan/gitlive/app.Builder.js/tests/TestCompiler.vala");
a.compileString();
}
return 0;