-// 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 ;
}
#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) {
- var a = new ValaSource(file);
- a.create_valac_tree();
+ for (var i = 0;i < 1000;i++) {
+ var a = new Palete.TestCompiler("/home/alan/gitlive/app.Builder.js/tests/TestCompiler.vala");
+ a.checkString();
+ }
return 0;
}
-*/
+