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 |