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

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

Issue 10825054: fix support for --package-root command line option to analyzer dartbug.com/4225 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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/DartCompiler.java
===================================================================
--- compiler/java/com/google/dart/compiler/DartCompiler.java (revision 9979)
+++ compiler/java/com/google/dart/compiler/DartCompiler.java (working copy)
@@ -1091,7 +1091,8 @@
File outputDirectory = config.getOutputDirectory();
DefaultDartArtifactProvider provider = new DefaultDartArtifactProvider(outputDirectory);
// Compile the Dart application and its dependencies.
- final LibrarySource lib = new UrlLibrarySource(sourceFile);
+ SystemLibraryManager libraryManager = config.getSystemLibraryManager();
+ final LibrarySource lib = new UrlLibrarySource(sourceFile.toURI(),libraryManager);
DefaultDartCompilerListener listener;
if (config.getCompilerOptions().showSourceFromAst()) {
listener = new DefaultDartCompilerListener(config.printErrorFormat()) {

Powered by Google App Engine
This is Rietveld 408576698