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

Unified Diff: sdk/lib/core/uri.dart

Issue 22918029: Change the type of the pathSegments argument to the Uri constructor from List to Iterable (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | tests/corelib/uri_path_test.dart » ('j') | tests/corelib/uri_path_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/uri.dart
diff --git a/sdk/lib/core/uri.dart b/sdk/lib/core/uri.dart
index 85e76bac920e693e5366458b952c3b08af1d75e4..30057f1132e5fc0952ffa3172755189f76a71116 100644
--- a/sdk/lib/core/uri.dart
+++ b/sdk/lib/core/uri.dart
@@ -158,7 +158,7 @@ class Uri {
this.host: "",
port: 0,
String path,
- List<String> pathSegments,
+ Iterable<String> pathSegments,
String query,
Map<String, String> queryParameters,
fragment: ""}) :
@@ -501,7 +501,7 @@ class Uri {
return allLowercase ? scheme : scheme.toLowerCase();
}
- String _makePath(String path, List<String> pathSegments) {
+ String _makePath(String path, Iterable<String> pathSegments) {
if (path == null && pathSegments == null) return "";
if (path != null && pathSegments != null) {
throw new ArgumentError('Both path and pathSegments specified');
« no previous file with comments | « no previous file | tests/corelib/uri_path_test.dart » ('j') | tests/corelib/uri_path_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698