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

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

Issue 13797002: Change MirrorSystem.libraries to Map<Uri, String> (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 8 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 | « no previous file | sdk/lib/_internal/compiler/implementation/filenames.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/dart2js.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart2js.dart b/sdk/lib/_internal/compiler/implementation/dart2js.dart
index 4031bebc4973c57395f38233308c7ffc687e20e1..61660e55fb3ac957b0f596077446e523f4fe77c9 100644
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart
@@ -80,10 +80,9 @@ void parseCommandLine(List<OptionHandler> handlers, List<String> argv) {
void compile(List<String> argv) {
bool isWindows = (Platform.operatingSystem == 'windows');
- Uri cwd = getCurrentDirectory();
- Uri libraryRoot = cwd;
- Uri out = cwd.resolve('out.js');
- Uri sourceMapOut = cwd.resolve('out.js.map');
+ Uri libraryRoot = currentDirectory;
+ Uri out = currentDirectory.resolve('out.js');
+ Uri sourceMapOut = currentDirectory.resolve('out.js.map');
Uri packageRoot = null;
List<String> options = new List<String>();
bool explicitOut = false;
@@ -102,16 +101,16 @@ void compile(List<String> argv) {
}
setLibraryRoot(String argument) {
- libraryRoot = cwd.resolve(extractPath(argument));
+ libraryRoot = currentDirectory.resolve(extractPath(argument));
}
setPackageRoot(String argument) {
- packageRoot = cwd.resolve(extractPath(argument));
+ packageRoot = currentDirectory.resolve(extractPath(argument));
}
setOutput(String argument) {
explicitOut = true;
- out = cwd.resolve(nativeToUriPath(extractParameter(argument)));
+ out = currentDirectory.resolve(nativeToUriPath(extractParameter(argument)));
sourceMapOut = Uri.parse('$out.map');
}
@@ -119,8 +118,8 @@ void compile(List<String> argv) {
if (argument == '--output-type=dart') {
outputLanguage = OUTPUT_LANGUAGE_DART;
if (!explicitOut) {
- out = cwd.resolve('out.dart');
- sourceMapOut = cwd.resolve('out.dart.map');
+ out = currentDirectory.resolve('out.dart');
+ sourceMapOut = currentDirectory.resolve('out.dart.map');
}
}
passThrough(argument);
@@ -254,7 +253,7 @@ void compile(List<String> argv) {
diagnosticHandler.diagnosticHandler(uri, begin, end, message, kind);
}
- Uri uri = cwd.resolve(arguments[0]);
+ Uri uri = currentDirectory.resolve(arguments[0]);
if (packageRoot == null) {
packageRoot = uri.resolve('./packages/');
}
@@ -273,10 +272,10 @@ void compile(List<String> argv) {
diagnosticHandler.info(
'compiled ${inputProvider.dartCharactersRead} characters Dart '
'-> $charactersWritten characters $outputLanguage '
- 'in ${relativize(cwd, out, isWindows)}');
+ 'in ${relativize(currentDirectory, out, isWindows)}');
if (!explicitOut) {
String input = uriPathToNative(arguments[0]);
- String output = relativize(cwd, out, isWindows);
+ String output = relativize(currentDirectory, out, isWindows);
print('Dart file $input compiled to $outputLanguage: $output');
}
}
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/filenames.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698