Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/formatter/CodeSnippetParsingUtil.java |
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/formatter/CodeSnippetParsingUtil.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/formatter/CodeSnippetParsingUtil.java |
index f98a57ab9d9ee1a5e2c8c28644a9d09107329f90..dc243359b5a5be69d7a136c4d1d6f3561c60bf01 100644 |
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/formatter/CodeSnippetParsingUtil.java |
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/formatter/CodeSnippetParsingUtil.java |
@@ -134,17 +134,7 @@ public class CodeSnippetParsingUtil { |
compilationResult.scanLines(sourceCode); |
DartCompilerListener listener = new DartCompilerListener() { |
@Override |
- public void compilationError(DartCompilationError event) { |
- compilationResult.problemCount += 1; |
- } |
- |
- @Override |
- public void compilationWarning(DartCompilationError event) { |
- compilationResult.problemCount += 1; |
- } |
- |
- @Override |
- public void typeError(DartCompilationError event) { |
+ public void onError(DartCompilationError event) { |
compilationResult.problemCount += 1; |
} |