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

Unified Diff: compiler/java/com/google/dart/compiler/parser/DartScannerParserContext.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/parser/DartScannerParserContext.java
diff --git a/compiler/java/com/google/dart/compiler/parser/DartScannerParserContext.java b/compiler/java/com/google/dart/compiler/parser/DartScannerParserContext.java
index fe4c4bb75c2e344abd04a2512f9e1bc1c8ce70ac..63ad50b9004aafd98da275476c6fc1853a493be3 100644
--- a/compiler/java/com/google/dart/compiler/parser/DartScannerParserContext.java
+++ b/compiler/java/com/google/dart/compiler/parser/DartScannerParserContext.java
@@ -118,12 +118,7 @@ public class DartScannerParserContext implements ParserContext {
@Override
public void error(DartCompilationError dartError) {
- listener.compilationError(dartError);
- }
-
- @Override
- public void warning(DartCompilationError dartError) {
- listener.compilationWarning(dartError);
+ listener.onError(dartError);
}
@Override

Powered by Google App Engine
This is Rietveld 408576698