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

Unified Diff: compiler/java/com/google/dart/compiler/testing/TestCompilerContext.java

Issue 9289029: Added runtime type checking to the elements of list and map literals in dartc (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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/java/com/google/dart/compiler/testing/TestCompilerContext.java
diff --git a/compiler/java/com/google/dart/compiler/testing/TestCompilerContext.java b/compiler/java/com/google/dart/compiler/testing/TestCompilerContext.java
index 29d8b86b4808074db6f8cbf1d073bf645d91d0e2..76fb7a60edca13887ffc4ac3a8bfab9b79010581 100644
--- a/compiler/java/com/google/dart/compiler/testing/TestCompilerContext.java
+++ b/compiler/java/com/google/dart/compiler/testing/TestCompilerContext.java
@@ -9,6 +9,7 @@ import com.google.dart.compiler.DartCompilationError;
import com.google.dart.compiler.DartCompilerContext;
import com.google.dart.compiler.DartCompilerListener;
import com.google.dart.compiler.DartSource;
+import com.google.dart.compiler.DefaultCompilerConfiguration;
import com.google.dart.compiler.ErrorCode;
import com.google.dart.compiler.ErrorSeverity;
import com.google.dart.compiler.LibrarySource;
@@ -38,6 +39,7 @@ public class TestCompilerContext implements DartCompilerListener, DartCompilerCo
private int typeErrorCount;
private int warningCount;
private int errorCount;
+ private final CompilerConfiguration compilerConfiguration = new DefaultCompilerConfiguration();
/**
* @param ignored list of events that will be ignored. All other events cause an AssertionError.
@@ -136,7 +138,7 @@ public class TestCompilerContext implements DartCompilerListener, DartCompilerCo
@Override
public CompilerConfiguration getCompilerConfiguration() {
- return null;
+ return compilerConfiguration;
}
public enum EventKind {

Powered by Google App Engine
This is Rietveld 408576698