- public overide void err (Vala.SourceReference? source, string message) {
- errors++;
- if (source == null) {
- stderr.printf ("My error: %s\n", message);
- } else {
- stderr.printf ("%s: My error: %s\n", source.to_string (), message);
- if (verbose_errors) {
- this.report_source (source);
+ public class ValaSourceReport : Vala.Report {
+
+
+
+
+ Gee.HashMap<int,string> line_errors;
+
+ public ValaSourceReport()
+ {
+ base();
+ this.line_errors = new Gee.HashMap<int,string> ();
+ }
+
+ public override void err (Vala.SourceReference? source, string message) {
+ errors++;
+ if (source == null) {
+ return;
+ //stderr.printf ("My error: %s\n", message);
+ }
+ if (source.file != "~~~~~testfile.vala") {
+ return;
+ }
+ var pre = "";
+ if (line_errors.has_key(source.begin.line)) {
+ pre = line_errors.get(source.begin.line) + "\n";
+