Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: compiler/java/com/google/dart/compiler/ErrorSeverity.java

Issue 8395013: DartC User Warning Framework (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use new ErrorCode enums in single onError() method. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: compiler/java/com/google/dart/compiler/ErrorSeverity.java
diff --git a/compiler/java/com/google/dart/compiler/ErrorSeverity.java b/compiler/java/com/google/dart/compiler/ErrorSeverity.java
new file mode 100644
index 0000000000000000000000000000000000000000..2c486893ef390b5d820639a7fe569bc6436206f1
--- /dev/null
+++ b/compiler/java/com/google/dart/compiler/ErrorSeverity.java
@@ -0,0 +1,24 @@
+package com.google.dart.compiler;
+
+/**
+ * The severity of {@link ErrorCode}.
+ */
+public enum ErrorSeverity {
+ /**
+ * Fatal error.
+ */
+ ERROR("E"),
+ /**
+ * Warning, may become error with -Werror command line flag.
+ */
+ WARNING("W");
+ final String name;
+
+ ErrorSeverity(String name) {
+ this.name = name;
+ }
+
+ public String getName() {
+ return name;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698