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

Unified Diff: compiler/javatests/com/google/dart/compiler/CompilerTestCase.java

Issue 10540010: Issue 3264. Use field type is formal initializer has to declared type (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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/CompilerTestCase.java
diff --git a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
index 0dd9c23af52dc4a5f02862646371831ea57cc332..2dd3581b7f1081b1466f737552c8a7d4a1800b6c 100644
--- a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
@@ -101,6 +101,7 @@ public abstract class CompilerTestCase extends TestCase {
* Collects the results of running analyzeLibrary.
*/
protected static class AnalyzeLibraryResult extends DartCompilerListener.Empty {
+ public String source;
private final List<DartCompilationError> errors = Lists.newArrayList();
private final List<DartCompilationError> compilationErrors = Lists.newArrayList();
private final List<DartCompilationError> compilationWarnings = Lists.newArrayList();
@@ -179,6 +180,7 @@ public abstract class CompilerTestCase extends TestCase {
protected AnalyzeLibraryResult analyzeLibrary(String name, String code)
throws Exception {
AnalyzeLibraryResult result = new AnalyzeLibraryResult();
+ result.source = code;
// Prepare library.
MockLibrarySource lib = new MockLibrarySource();
// Prepare unit.

Powered by Google App Engine
This is Rietveld 408576698