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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.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/parser/SyntaxTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
index 8f35627a7ac4b1194966f8e91e43559a98662d86..72918e305721d4f499003a219f9530e3a2595a9c 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
@@ -5,7 +5,6 @@
package com.google.dart.compiler.parser;
import com.google.common.base.Joiner;
-import com.google.dart.compiler.DartCompilationError;
import com.google.dart.compiler.DartCompilerListener;
import com.google.dart.compiler.DartSourceTest;
import com.google.dart.compiler.ast.DartArrayLiteral;
@@ -108,14 +107,7 @@ public class SyntaxTest extends AbstractParserTest {
try {
DartSourceTest dartSrc = new DartSourceTest(getName(), sourceCode, null);
DartScannerParserContext context =
- new DartScannerParserContext(dartSrc, sourceCode, new DartCompilerListener() {
- @Override
- public void onError(DartCompilationError event) {
- }
- @Override
- public void unitCompiled(DartUnit unit) {
- }
- });
+ new DartScannerParserContext(dartSrc, sourceCode, new DartCompilerListener.Empty());
DartParser parser = new DartParser(context);
parser.parseExpression();
}

Powered by Google App Engine
This is Rietveld 408576698