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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompilerListener.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/DartCompilerListener.java
diff --git a/compiler/java/com/google/dart/compiler/DartCompilerListener.java b/compiler/java/com/google/dart/compiler/DartCompilerListener.java
index c34dffd11d64b8ead56ca1d594bf3c15bc4f77d3..a182a35112998385124ec1a423571c7c2f66e19f 100644
--- a/compiler/java/com/google/dart/compiler/DartCompilerListener.java
+++ b/compiler/java/com/google/dart/compiler/DartCompilerListener.java
@@ -14,16 +14,11 @@ import com.google.dart.compiler.ast.DartUnit;
public abstract class DartCompilerListener {
/**
- * Called by the compiler when a compilation error has occurred in a Dart
- * file.
+ * Called by the compiler when a compilation error has occurred in a Dart file.
*
* @param event the event information (not <code>null</code>)
*/
- public abstract void compilationError(DartCompilationError event);
-
- public abstract void compilationWarning(DartCompilationError event);
-
- public abstract void typeError(DartCompilationError event);
+ public abstract void onError(DartCompilationError event);
/**
* Called by the compiler after the resolution and type analyzer phase for each unit.

Powered by Google App Engine
This is Rietveld 408576698