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

Side by Side Diff: test/dart_codegen/expect/collection/linked_hash_map.dart

Issue 1160673003: fixes #202, check IndexExpression (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 part of dart.collection; 1 part of dart.collection;
2 abstract class LinkedHashMap<K, V> implements HashMap<K, V> {external factory L inkedHashMap({ 2 abstract class LinkedHashMap<K, V> implements HashMap<K, V> {external factory L inkedHashMap({
3 bool equals(K key1, K key2), int hashCode(K key), bool isValidKey(potentialKey )} 3 bool equals(K key1, K key2), int hashCode(K key), bool isValidKey(potentialKey )}
4 ); 4 );
5 external factory LinkedHashMap.identity(); 5 external factory LinkedHashMap.identity();
6 factory LinkedHashMap.from(Map other) { 6 factory LinkedHashMap.from(Map other) {
7 LinkedHashMap<K, V> result = new LinkedHashMap<K, V>(); 7 LinkedHashMap<K, V> result = new LinkedHashMap<K, V>();
8 other.forEach((k, v) { 8 other.forEach((k, v) {
9 result[k] = DEVC$RT.cast(v, dynamic, V, "CompositeCast", """line 74, column 40 of dart:collection/linked_hash_map.dart: """, v is V, false); 9 result[DEVC$RT.cast(k, dynamic, K, "CompositeCast", """line 74, column 35 of dart:collection/linked_hash_map.dart: """, k is K, false)] = DEVC$RT.cast(v, dy namic, V, "CompositeCast", """line 74, column 40 of dart:collection/linked_hash_ map.dart: """, v is V, false);
10 } 10 }
11 ); 11 );
12 return result; 12 return result;
13 } 13 }
14 factory LinkedHashMap.fromIterable(Iterable iterable, { 14 factory LinkedHashMap.fromIterable(Iterable iterable, {
15 K key(element), V value(element)} 15 K key(element), V value(element)}
16 ) { 16 ) {
17 LinkedHashMap<K, V> map = new LinkedHashMap<K, V>(); 17 LinkedHashMap<K, V> map = new LinkedHashMap<K, V>();
18 Maps._fillMapWithMappedIterable(map, iterable, key, value); 18 Maps._fillMapWithMappedIterable(map, iterable, key, value);
19 return map; 19 return map;
20 } 20 }
21 factory LinkedHashMap.fromIterables(Iterable<K> keys, Iterable<V> values) { 21 factory LinkedHashMap.fromIterables(Iterable<K> keys, Iterable<V> values) {
22 LinkedHashMap<K, V> map = new LinkedHashMap<K, V>(); 22 LinkedHashMap<K, V> map = new LinkedHashMap<K, V>();
23 Maps._fillMapWithIterables(map, keys, values); 23 Maps._fillMapWithIterables(map, keys, values);
24 return map; 24 return map;
25 } 25 }
26 } 26 }
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/collection/hash_map.dart ('k') | test/dart_codegen/expect/collection/splay_tree.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698