tests/TestCompiler.vala
[app.Builder.js] / tests / TestCompiler.vala
index 0d2d13d..6ff082b 100644 (file)
@@ -1,5 +1,5 @@
 
-// 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 {
         
@@ -68,9 +68,7 @@ namespace Palete {
                        context.thread = true;
                        
                        
-                       this.report = new ValaSourceReport(this.file);
-                       context.report = this.report;
-                       
+                       
                        
                        context.basedir = "/tmp"; //Posix.realpath (".");
                
@@ -128,7 +126,7 @@ namespace Palete {
                                 
                                Vala.CodeContext.pop ();
                                 
-                               return this.report.line_errors;
+                               return;
                        }
 
 
@@ -138,7 +136,7 @@ namespace Palete {
                        if (context.report.get_errors () > 0) {
                                 Vala.CodeContext.pop ();
                                 
-                               return this.report.line_errors;
+                               return ;
                                
                        }
                        
@@ -176,10 +174,12 @@ namespace Palete {
  
 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;
 }
-*/