X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tests%2FTestCompiler.vala;h=7c23d11d61279900ba2557040dd2cc2d3fdcfdc6;hb=6f6e6ab99d47d1211e8f308cc7f2e88efc06503f;hp=655600baaa93299eb4ac79b481737feb560f1f3b;hpb=319ce72a296af0ccf11c94934222168bbc58e57a;p=app.Builder.js diff --git a/tests/TestCompiler.vala b/tests/TestCompiler.vala index 655600baa..7c23d11d6 100644 --- a/tests/TestCompiler.vala +++ b/tests/TestCompiler.vala @@ -157,9 +157,13 @@ namespace Palete { #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"); @@ -175,8 +179,8 @@ namespace Palete { int main (string[] args) { for (var i = 0;i < 1000;i++) { - var a = new Palete.TestCompiler(file); - a.compileString(); + var a = new Palete.TestCompiler("/home/alan/gitlive/app.Builder.js/tests/TestCompiler.vala"); + a.checkString(); } return 0; }