| Index: compiler/java/com/google/dart/compiler/DartCompilerMainContext.java
|
| diff --git a/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java b/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java
|
| index 0bbc0639b1412db604664e8823c874341d8233df..0fe8f450940326d807078fbcf0019b42b3ccef72 100644
|
| --- a/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java
|
| +++ b/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java
|
| @@ -148,9 +148,12 @@ final class DartCompilerMainContext implements DartCompilerListener, DartCompile
|
| return getApplicationUnit();
|
| }
|
| try {
|
| - return DartParser.getSourceParser(libSrc, listener).preProcessLibraryDirectives(libSrc);
|
| + DartParser parser = DartParser.getSourceParser(libSrc, listener);
|
| + LibraryUnit unit = parser.preProcessLibraryDirectives(libSrc);
|
| + return unit;
|
| } catch (IOException e) {
|
| - onError(new DartCompilationError(libSrc, DartCompilerErrorCode.IO, e.getMessage()));
|
| + onError(new DartCompilationError(libSrc, DartCompilerErrorCode.IO, e
|
| + .getMessage()));
|
| return null;
|
| }
|
| }
|
|
|