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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/compiler/TestCompilerListener.java

Issue 9113017: Add unitAboutToCompile() into DartCompilerListener (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 12 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_test/src/com/google/dart/tools/core/internal/compiler/TestCompilerListener.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/compiler/TestCompilerListener.java b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/compiler/TestCompilerListener.java
index f386c8912bdabb43c648d12f258cf5129faf17ad..5943a468c0f38f44135588b6b9edf4b597b111c7 100644
--- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/compiler/TestCompilerListener.java
+++ b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/compiler/TestCompilerListener.java
@@ -13,17 +13,16 @@
*/
package com.google.dart.tools.core.internal.compiler;
-import com.google.dart.compiler.DartCompilationError;
-import com.google.dart.compiler.DartCompilerListener;
-import com.google.dart.compiler.ast.DartUnit;
-
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
+import com.google.dart.compiler.DartCompilationError;
+import com.google.dart.compiler.DartCompilerListener;
+
/**
* A listener for validating that zero or more specific errors occurred during a compilation.
*/
-public class TestCompilerListener extends DartCompilerListener {
+public class TestCompilerListener extends DartCompilerListener.Empty {
private String[] messages;
private int[] line;
private int[] column;
@@ -65,8 +64,4 @@ public class TestCompilerListener extends DartCompilerListener {
assertEquals("Wrong column number", column[current], event.getColumnNumber());
current++;
}
-
- @Override
- public void unitCompiled(DartUnit unit) {
- }
}
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698