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

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: junit tests fixed 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..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;
}
}

Powered by Google App Engine
This is Rietveld 408576698