Chromium Code Reviews

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

Issue 1148283010: Remove dart backend (Closed) Base URL: https://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.
Jump to:
View unified diff |
OLDNEW
(Empty)
1 part of dart.collection;
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 )}
4 );
5 external factory LinkedHashMap.identity();
6 factory LinkedHashMap.from(Map other) {
7 LinkedHashMap<K, V> result = new LinkedHashMap<K, V>();
8 other.forEach((k, v) {
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 }
11 );
12 return result;
13 }
14 factory LinkedHashMap.fromIterable(Iterable iterable, {
15 K key(element), V value(element)}
16 ) {
17 LinkedHashMap<K, V> map = new LinkedHashMap<K, V>();
18 Maps._fillMapWithMappedIterable(map, iterable, key, value);
19 return map;
20 }
21 factory LinkedHashMap.fromIterables(Iterable<K> keys, Iterable<V> values) {
22 LinkedHashMap<K, V> map = new LinkedHashMap<K, V>();
23 Maps._fillMapWithIterables(map, keys, values);
24 return map;
25 }
26 }
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/collection/iterator.dart ('k') | test/dart_codegen/expect/collection/linked_hash_set.dart » ('j') | no next file with comments »

Powered by Google App Engine