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; |
+ } |
+} |