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

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

Issue 9866006: Add library mapping. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased 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
« no previous file with comments | « dart/lib/compiler/implementation/compiler.dart ('k') | dart/lib/compiler/implementation/frog_leg.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/dart2js.dart
diff --git a/dart/lib/compiler/implementation/dart2js.dart b/dart/lib/compiler/implementation/dart2js.dart
index 094a203640f09bc5eeb0b4104afb741f8b0c2863..6e6c10ccd4decdd4c3ce5687a5b7224c73c111c4 100644
--- a/dart/lib/compiler/implementation/dart2js.dart
+++ b/dart/lib/compiler/implementation/dart2js.dart
@@ -9,7 +9,6 @@
#import('../../uri/uri.dart');
#import('../compiler.dart', prefix: 'api');
-#import('io/io.dart', prefix: 'io');
#import('colors.dart');
#import('source_file.dart');
@@ -44,7 +43,7 @@ String relativize(Uri base, Uri uri) {
}
void compile(List<String> argv) {
- Uri cwd = new Uri(scheme: 'file', path: io.getCurrentDirectory());
+ Uri cwd = new Uri(scheme: 'file', path: getCurrentDirectory());
bool throwOnError = false;
bool showWarnings = true;
bool verbose = false;
@@ -151,3 +150,9 @@ String readAll(String filename) {
file.closeSync();
return new String.fromCharCodes(new Utf8Decoder(buffer).decodeRest());
}
+
+String getCurrentDirectory() {
+ String dir = new File(".").fullPathSync();
+ if (dir.endsWith("/")) return dir;
+ return "$dir/";
+}
« no previous file with comments | « dart/lib/compiler/implementation/compiler.dart ('k') | dart/lib/compiler/implementation/frog_leg.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698