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

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

Issue 12052038: Rename new Uri.fromString to Uri.parse. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload because of Error. Created 7 years, 11 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 | « samples/swarm/swarm_ui_lib/util/Uri.dart ('k') | sdk/lib/_internal/compiler/samples/leap/leap_leg.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 f5acd283306f73b1fd1d34fd6095bf72b6998b7c..5af59fec593932dee1ee93c50562762d7a9eb83c 100644
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart
@@ -96,7 +96,7 @@ void compile(List<String> argv) {
setOutput(String argument) {
explicitOut = true;
out = cwd.resolve(nativeToUriPath(extractParameter(argument)));
- sourceMapOut = new Uri.fromString('$out.map');
+ sourceMapOut = Uri.parse('$out.map');
}
setOutputType(String argument) {
@@ -230,7 +230,7 @@ void compile(List<String> argv) {
sourceMapOut.path.substring(sourceMapOut.path.lastIndexOf('/') + 1);
code = '$code\n//@ sourceMappingURL=${sourceMapFileName}';
writeString(out, code);
- writeString(new Uri.fromString('$out.deps'),
+ writeString(Uri.parse('$out.deps'),
getDepsOutput(inputProvider.sourceFiles));
int dartBytesRead = inputProvider.dartBytesRead;
int bytesWritten = code.length;
« no previous file with comments | « samples/swarm/swarm_ui_lib/util/Uri.dart ('k') | sdk/lib/_internal/compiler/samples/leap/leap_leg.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698