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

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

Issue 23486007: Change the field and constructor parameter types of NoSuchMethodError to Symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 7 years, 3 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/errors.dart ('k') | sdk/lib/js/dartium/js_dartium.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 * An unordered collection of key-value pairs, 8 * An unordered collection of key-value pairs,
9 * from which you retrieve a value by using its associated key. 9 * from which you retrieve a value by using its associated key.
10 * 10 *
(...skipping 18 matching lines...) Expand all
29 * For each element of the [iterable] this constructor computes a key-value 29 * For each element of the [iterable] this constructor computes a key-value
30 * pair, by applying [key] and [value] respectively. 30 * pair, by applying [key] and [value] respectively.
31 * 31 *
32 * The keys computed by the source [iterable] 32 * The keys computed by the source [iterable]
33 * do not need to be unique. The last 33 * do not need to be unique. The last
34 * occurrence of a key will simply overwrite any previous value. 34 * occurrence of a key will simply overwrite any previous value.
35 * 35 *
36 * If no values are specified for [key] and [value] the default is the 36 * If no values are specified for [key] and [value] the default is the
37 * identity function. 37 * identity function.
38 */ 38 */
39 factory Map.fromIterable(Iterable<K> iterable, 39 factory Map.fromIterable(Iterable iterable,
40 {K key(element), V value(element)}) = LinkedHashMap<K, V>.fromIterable; 40 {K key(element), V value(element)}) = LinkedHashMap<K, V>.fromIterable;
41 41
42 /** 42 /**
43 * Creates a Map instance associating the given [keys] to [values]. 43 * Creates a Map instance associating the given [keys] to [values].
44 * 44 *
45 * This constructor iterates over [keys] and [values] and maps each element of 45 * This constructor iterates over [keys] and [values] and maps each element of
46 * [keys] to the corresponding element of [values]. 46 * [keys] to the corresponding element of [values].
47 * 47 *
48 * If [keys] contains the same object multiple times, the last occurrence 48 * If [keys] contains the same object multiple times, the last occurrence
49 * overwrites the previous value. 49 * overwrites the previous value.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 /** 135 /**
136 * Returns true if there is no {key, value} pair in the map. 136 * Returns true if there is no {key, value} pair in the map.
137 */ 137 */
138 bool get isEmpty; 138 bool get isEmpty;
139 139
140 /** 140 /**
141 * Returns true if there is at least one {key, value} pair in the map. 141 * Returns true if there is at least one {key, value} pair in the map.
142 */ 142 */
143 bool get isNotEmpty; 143 bool get isNotEmpty;
144 } 144 }
OLDNEW
« no previous file with comments | « sdk/lib/core/errors.dart ('k') | sdk/lib/js/dartium/js_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698