tests/TreeBuilder.vala
[app.Builder.js] / tests / TreeBuilder.vala
index cad25db..fe866cb 100644 (file)
@@ -6,7 +6,14 @@ namespace Palete {
        public class ValaSourceReport  : Vala.Report {
 
 
+               
+
                Gee.HashMap<int,string> line_errors;
+
+               public ValaSourceReport()
+               {
+                       this.line_errors = new Gee.HashMap<int,string> ();
+               }
                
                public override void err (Vala.SourceReference? source, string message) {
                        errors++;
@@ -14,14 +21,15 @@ namespace Palete {
                                return;
                                //stderr.printf ("My error: %s\n", message);
                        }
-                       if (source.
-                       var line = source.begin.line;
-                       
-                       stderr.printf ("%s: My error: %s\n", source.to_string (), message);
-               
-                               //Vala.Report.report_source (source);
-                       
+                       if (source.file != "~~~~~testfile.vala") {
+                               return;
+                       }
+                       var pre = "";
+                       if (line_errors.has_key(source.begin.line)) {
+                               pre = line_errors.get(source.begin.line) + "\n";
+                               
                        }
+                       line_errors.set(source.begin.line, pre +  message);
                }