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

Unified Diff: compiler/java/com/google/dart/compiler/ErrorCode.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/ErrorCode.java
diff --git a/compiler/java/com/google/dart/compiler/ErrorCode.java b/compiler/java/com/google/dart/compiler/ErrorCode.java
index 0b17865ec75b9297349fab0c5489f66b566507b2..4305b82f41ab6ee9dff8fd74cf7a4771be94a4fe 100644
--- a/compiler/java/com/google/dart/compiler/ErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/ErrorCode.java
@@ -1,7 +1,6 @@
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
package com.google.dart.compiler;
/**
@@ -13,4 +12,14 @@ public interface ErrorCode {
* Return the message template used to create the message to be displayed for this error.
*/
String getMessage();
+
+ /**
+ * @return the {@link ErrorSeverity} of this error.
+ */
+ ErrorSeverity getErrorSeverity();
+
+ /**
+ * @return the {@link SubSystem} which issued this error.
+ */
+ SubSystem getSubSystem();
}

Powered by Google App Engine
This is Rietveld 408576698