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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/ErrorRecordingContext.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: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/ErrorRecordingContext.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/ErrorRecordingContext.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/ErrorRecordingContext.java
index 243690502c7966b0ef97594b29366fe32b2ff0d6..a1bb2a535d74f7ba77988529f5d4920a3f29ac54 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/ErrorRecordingContext.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/ErrorRecordingContext.java
@@ -52,7 +52,7 @@ class ErrorRecordingContext implements DartCompilerContext {
private List<DartCompilationError> errors = new ArrayList<DartCompilationError>();
@Override
- public void compilationError(DartCompilationError event) {
+ public void onError(DartCompilationError event) {
errors.add(event);
}
@@ -120,9 +120,4 @@ class ErrorRecordingContext implements DartCompilerContext {
public boolean shouldWarnOnNoSuchType() {
return false;
}
-
- @Override
- public void typeError(DartCompilationError event) {
- errors.add(event);
- }
}

Powered by Google App Engine
This is Rietveld 408576698