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

Side by Side Diff: sdk/lib/core/uri.dart

Issue 14246008: Allow Object when doing lookups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot to upload before committing Created 7 years, 5 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 | « sdk/lib/core/set.dart ('k') | sdk/lib/html/dart2js/html_dart2js.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 part of dart.core; 5 part of dart.core;
6 6
7 /** 7 /**
8 * A parsed URI, as specified by RFC-3986, http://tools.ietf.org/html/rfc3986. 8 * A parsed URI, as specified by RFC-3986, http://tools.ietf.org/html/rfc3986.
9 */ 9 */
10 class Uri { 10 class Uri {
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 // abcdefghijklmno 1095 // abcdefghijklmno
1096 0xfffe, // 0x60 - 0x6f 0111111111111111 1096 0xfffe, // 0x60 - 0x6f 0111111111111111
1097 // pqrstuvwxyz ~ 1097 // pqrstuvwxyz ~
1098 0x47ff]; // 0x70 - 0x7f 1111111111100010 1098 0x47ff]; // 0x70 - 0x7f 1111111111100010
1099 } 1099 }
1100 1100
1101 class _UnmodifiableMap<K, V> implements Map<K, V> { 1101 class _UnmodifiableMap<K, V> implements Map<K, V> {
1102 final Map _map; 1102 final Map _map;
1103 const _UnmodifiableMap(this._map); 1103 const _UnmodifiableMap(this._map);
1104 1104
1105 bool containsValue(V value) => _map.containsValue(value); 1105 bool containsValue(Object value) => _map.containsValue(value);
1106 bool containsKey(K key) => _map.containsKey(key); 1106 bool containsKey(Object key) => _map.containsKey(key);
1107 V operator [](K key) => _map[key]; 1107 V operator [](Object key) => _map[key];
1108 void operator []=(K key, V value) { 1108 void operator []=(K key, V value) {
1109 throw new UnsupportedError("Cannot modify an unmodifiable map"); 1109 throw new UnsupportedError("Cannot modify an unmodifiable map");
1110 } 1110 }
1111 V putIfAbsent(K key, V ifAbsent()) { 1111 V putIfAbsent(K key, V ifAbsent()) {
1112 throw new UnsupportedError("Cannot modify an unmodifiable map"); 1112 throw new UnsupportedError("Cannot modify an unmodifiable map");
1113 } 1113 }
1114 addAll(Map other) { 1114 addAll(Map other) {
1115 throw new UnsupportedError("Cannot modify an unmodifiable map"); 1115 throw new UnsupportedError("Cannot modify an unmodifiable map");
1116 } 1116 }
1117 V remove(K key) { 1117 V remove(Object key) {
1118 throw new UnsupportedError("Cannot modify an unmodifiable map"); 1118 throw new UnsupportedError("Cannot modify an unmodifiable map");
1119 } 1119 }
1120 void clear() { 1120 void clear() {
1121 throw new UnsupportedError("Cannot modify an unmodifiable map"); 1121 throw new UnsupportedError("Cannot modify an unmodifiable map");
1122 } 1122 }
1123 void forEach(void f(K key, V value)) => _map.forEach(f); 1123 void forEach(void f(K key, V value)) => _map.forEach(f);
1124 Iterable<K> get keys => _map.keys; 1124 Iterable<K> get keys => _map.keys;
1125 Iterable<V> get values => _map.values; 1125 Iterable<V> get values => _map.values;
1126 int get length => _map.length; 1126 int get length => _map.length;
1127 bool get isEmpty => _map.isEmpty; 1127 bool get isEmpty => _map.isEmpty;
1128 bool get isNotEmpty => _map.isNotEmpty; 1128 bool get isNotEmpty => _map.isNotEmpty;
1129 } 1129 }
OLDNEW
« no previous file with comments | « sdk/lib/core/set.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698