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

Side by Side Diff: utils/pub/io.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/pub/hosted_source.dart ('k') | utils/pub/oauth2.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Helper functionality to make working with IO easier. 5 /// Helper functionality to make working with IO easier.
6 library io; 6 library io;
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:io'; 9 import 'dart:io';
10 import 'dart:isolate'; 10 import 'dart:isolate';
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 /// Gets a [Directory] for [entry], which can either already be one, or be a 1028 /// Gets a [Directory] for [entry], which can either already be one, or be a
1029 /// [String]. 1029 /// [String].
1030 Directory _getDirectory(entry) { 1030 Directory _getDirectory(entry) {
1031 if (entry is Directory) return entry; 1031 if (entry is Directory) return entry;
1032 return new Directory(entry); 1032 return new Directory(entry);
1033 } 1033 }
1034 1034
1035 /// Gets a [Uri] for [uri], which can either already be one, or be a [String]. 1035 /// Gets a [Uri] for [uri], which can either already be one, or be a [String].
1036 Uri _getUri(uri) { 1036 Uri _getUri(uri) {
1037 if (uri is Uri) return uri; 1037 if (uri is Uri) return uri;
1038 return new Uri.fromString(uri); 1038 return Uri.parse(uri);
1039 } 1039 }
OLDNEW
« no previous file with comments | « utils/pub/hosted_source.dart ('k') | utils/pub/oauth2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698