| 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.
|
|
|