Chromium Code Reviews| 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..812133b4b277d49ced64df8cd89225df8376fcd6 100644 |
| --- a/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java |
| +++ b/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java |
| @@ -148,10 +148,13 @@ final class DartCompilerMainContext implements DartCompilerListener, DartCompile |
| return getApplicationUnit(); |
| } |
| try { |
| - return DartParser.getSourceParser(libSrc, listener).preProcessLibraryDirectives(libSrc); |
| + DartParser parser = DartParser.getSourceParser(libSrc, listener); |
|
ahe
2012/03/20 21:34:09
Remove tabs.
zundel
2012/03/25 16:39:02
Done.
|
| + LibraryUnit unit = parser.preProcessLibraryDirectives(libSrc); |
| + return unit; |
| } catch (IOException e) { |
| - onError(new DartCompilationError(libSrc, DartCompilerErrorCode.IO, e.getMessage())); |
| - return null; |
| + throw(new RuntimeException(e)); |
|
ahe
2012/03/20 21:34:09
Debug code?
zundel
2012/03/25 16:39:02
reverted
|
| + // onError(new DartCompilationError(libSrc, DartCompilerErrorCode.IO, e.getMessage())); |
| + //return null; |
| } |
| } |