[gnome-builder] vala: diagnostics: count errors and warnings
- From: Ben Iofel <beniofel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vala: diagnostics: count errors and warnings
- Date: Thu, 24 Mar 2016 06:41:05 +0000 (UTC)
commit 776b902c9215b0aed1c99f9159a77831ad66884d
Author: Ben Iofel <iofelben gmail com>
Date: Thu Mar 24 02:33:26 2016 -0400
vala: diagnostics: count errors and warnings
plugins/vala-pack/ide-vala-diagnostics.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/vala-pack/ide-vala-diagnostics.vala b/plugins/vala-pack/ide-vala-diagnostics.vala
index 42daadf..eaf75d6 100644
--- a/plugins/vala-pack/ide-vala-diagnostics.vala
+++ b/plugins/vala-pack/ide-vala-diagnostics.vala
@@ -48,14 +48,17 @@ namespace Ide
public override void depr (Vala.SourceReference? source_reference, string message) {
add (source_reference, message, Ide.DiagnosticSeverity.DEPRECATED);
+ ++warnings;
}
public override void warn (Vala.SourceReference? source_reference, string message) {
add (source_reference, message, Ide.DiagnosticSeverity.WARNING);
+ ++warnings;
}
public override void err (Vala.SourceReference? source_reference, string message) {
add (source_reference, message, Ide.DiagnosticSeverity.ERROR);
+ ++errors;
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]