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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompilerContext.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/DartCompilerContext.java
diff --git a/compiler/java/com/google/dart/compiler/DartCompilerContext.java b/compiler/java/com/google/dart/compiler/DartCompilerContext.java
index abd43b0715128b170f51c2b528bde836725f6f60..3c82c176591fb3e266f9ca9cfecc60f802992319 100644
--- a/compiler/java/com/google/dart/compiler/DartCompilerContext.java
+++ b/compiler/java/com/google/dart/compiler/DartCompilerContext.java
@@ -48,19 +48,11 @@ public interface DartCompilerContext {
LibraryUnit getLibraryUnit(LibrarySource lib);
/**
- * Called by the compiler when a compilation error has occurred in a Dart
- * file.
+ * Called by the compiler when a error (fatal or non-fatal) has occurred in a Dart file.
*
* @param event the event information (not <code>null</code>)
*/
- void compilationError(DartCompilationError event);
-
- /**
- * Called by the compiler when a (non-fatal) type error has been detected.
- *
- * @param event the event information (not <code>null</code>)
- */
- void typeError(DartCompilationError event);
+ void onError(DartCompilationError event);
/**
* Gets a reader for an artifact associated with the specified source, which

Powered by Google App Engine
This is Rietveld 408576698