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

Unified Diff: dart/lib/compiler/compiler.dart

Issue 10407092: Add --package-root option to the compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 7 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: dart/lib/compiler/compiler.dart
diff --git a/dart/lib/compiler/compiler.dart b/dart/lib/compiler/compiler.dart
index bc8ed51be087daa8210e1f93c535a967499eb5a8..b7a780fe82600a5629e77f5890da41c3d79e9b02 100644
--- a/dart/lib/compiler/compiler.dart
+++ b/dart/lib/compiler/compiler.dart
@@ -38,10 +38,12 @@ typedef void DiagnosticHandler(Uri uri, int begin, int end,
*/
Future<String> compile(Uri script,
Uri libraryRoot,
+ Uri packageRoot,
ReadUriFromString provider,
DiagnosticHandler handler,
[List<String> options = const []]) {
- Compiler compiler = new Compiler(provider, handler, libraryRoot, options);
+ Compiler compiler = new Compiler(provider, handler, libraryRoot, packageRoot,
+ options);
compiler.run(script);
String code = compiler.assembledCode;
Completer<String> completer = new Completer<String>();
« no previous file with comments | « no previous file | dart/lib/compiler/implementation/apiimpl.dart » ('j') | dart/lib/compiler/implementation/dart2js.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698