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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompilerMainContext.java

Issue 9702034: Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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/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;
}
}

Powered by Google App Engine
This is Rietveld 408576698