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

Unified Diff: compiler/javatests/com/google/dart/compiler/common/LibrarySourceFileTest.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/compiler/common/LibrarySourceFileTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/common/LibrarySourceFileTest.java b/compiler/javatests/com/google/dart/compiler/common/LibrarySourceFileTest.java
index e297ef7d765a19c62671f6f528b458a9bdd8f654..bdd89cdcf5c79489876a69b9756dd9001f8839fe 100644
--- a/compiler/javatests/com/google/dart/compiler/common/LibrarySourceFileTest.java
+++ b/compiler/javatests/com/google/dart/compiler/common/LibrarySourceFileTest.java
@@ -10,7 +10,6 @@ import com.google.dart.compiler.DartCompilerListener;
import com.google.dart.compiler.ErrorSeverity;
import com.google.dart.compiler.LibrarySource;
import com.google.dart.compiler.UrlLibrarySource;
-import com.google.dart.compiler.ast.DartUnit;
import com.google.dart.compiler.ast.LibraryNode;
import com.google.dart.compiler.ast.LibraryUnit;
import com.google.dart.compiler.parser.DartParser;
@@ -95,7 +94,7 @@ public class LibrarySourceFileTest extends AbstractSourceFileTest {
if (libUnit == null) {
UrlLibrarySource lib = new UrlLibrarySource(file);
- DartCompilerListener listener = new DartCompilerListener() {
+ DartCompilerListener listener = new DartCompilerListener.Empty() {
@Override
public void onError(DartCompilationError event) {
// Ignore warnings when testing.
@@ -105,9 +104,6 @@ public class LibrarySourceFileTest extends AbstractSourceFileTest {
// Rethrow error.
throw new RuntimeException(event.getMessage());
}
- @Override
- public void unitCompiled(DartUnit unit) {
- }
};
try {

Powered by Google App Engine
This is Rietveld 408576698