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

Unified Diff: compiler/javatests/com/google/dart/corelib/SharedTestCase.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: compiler/javatests/com/google/dart/corelib/SharedTestCase.java
diff --git a/compiler/javatests/com/google/dart/corelib/SharedTestCase.java b/compiler/javatests/com/google/dart/corelib/SharedTestCase.java
index 9be4ecb9bf0ed75ea3cc3dedac277ef6abb569ad..81d745ae234a64a73e815a0badae3c8289fd3226 100644
--- a/compiler/javatests/com/google/dart/corelib/SharedTestCase.java
+++ b/compiler/javatests/com/google/dart/corelib/SharedTestCase.java
@@ -5,7 +5,6 @@
package com.google.dart.corelib;
import com.google.dart.compiler.CommandLineOptions.CompilerOptions;
-import com.google.dart.compiler.ast.DartUnit;
import com.google.dart.compiler.CompilerConfiguration;
import com.google.dart.compiler.DartArtifactProvider;
import com.google.dart.compiler.DartCompilationError;
@@ -218,7 +217,7 @@ public abstract class SharedTestCase extends TestCase {
}
private DartCompilerListener getListener() {
- DartCompilerListener listener = new DartCompilerListener() {
+ DartCompilerListener listener = new DartCompilerListener.Empty() {
@Override
public void onError(DartCompilationError event) {
if (event.getErrorCode().getSubSystem() == SubSystem.STATIC_TYPE) {
@@ -240,10 +239,6 @@ public abstract class SharedTestCase extends TestCase {
throw new AssertionError(event);
}
}
-
- @Override
- public void unitCompiled(DartUnit unit) {
- }
};
return listener;
}

Powered by Google App Engine
This is Rietveld 408576698