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

Side by Side Diff: test/generated_sdk/lib/collection/collection.dart

Issue 955513008: cleans up sdk patching so we no longer have unresolved names (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « test/generated_sdk/lib/async/async.dart ('k') | test/generated_sdk/lib/convert/convert.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 /** 5 /**
6 * Classes and utilities that supplement the collection support in dart:core. 6 * Classes and utilities that supplement the collection support in dart:core.
7 */ 7 */
8 library dart.collection; 8 library dart.collection;
9 9
10 import 'dart:_internal'; 10 import 'dart:_internal';
11 import 'dart:math' show Random; // Used by ListMixin.shuffle. 11 import 'dart:math' show Random; // Used by ListMixin.shuffle.
12 12
13 part 'collections.dart'; 13 part 'collections.dart';
14 part 'hash_map.dart'; 14 part 'hash_map.dart';
15 part 'hash_set.dart'; 15 part 'hash_set.dart';
16 part 'iterable.dart'; 16 part 'iterable.dart';
17 part 'iterator.dart'; 17 part 'iterator.dart';
18 part 'linked_hash_map.dart'; 18 part 'linked_hash_map.dart';
19 part 'linked_hash_set.dart'; 19 part 'linked_hash_set.dart';
20 part 'linked_list.dart'; 20 part 'linked_list.dart';
21 part 'list.dart'; 21 part 'list.dart';
22 part 'maps.dart'; 22 part 'maps.dart';
23 part 'queue.dart'; 23 part 'queue.dart';
24 part 'set.dart'; 24 part 'set.dart';
25 part 'splay_tree.dart'; 25 part 'splay_tree.dart';
26 import 'dart:_foreign_helper' show JS;
27 import 'dart:_js_helper' show
28 fillLiteralMap, InternalMap, NoInline, NoThrows, patch;
26 29
27 class _HashMap<K, V> implements HashMap<K, V> { 30 class _HashMap<K, V> implements HashMap<K, V> {
28 int _length = 0; 31 int _length = 0;
29 32
30 // The hash map contents are divided into three parts: one part for 33 // The hash map contents are divided into three parts: one part for
31 // string keys, one for numeric keys, and one for the rest. String 34 // string keys, one for numeric keys, and one for the rest. String
32 // and numeric keys map directly to their values, but the rest of 35 // and numeric keys map directly to their values, but the rest of
33 // the entries are stored in bucket lists of the form: 36 // the entries are stored in bucket lists of the form:
34 // 37 //
35 // [key-0, value-0, key-1, value-1, ...] 38 // [key-0, value-0, key-1, value-1, ...]
(...skipping 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 } else if (_cell == null) { 1672 } else if (_cell == null) {
1670 _current = null; 1673 _current = null;
1671 return false; 1674 return false;
1672 } else { 1675 } else {
1673 _current = _cell._element; 1676 _current = _cell._element;
1674 _cell = _cell._next; 1677 _cell = _cell._next;
1675 return true; 1678 return true;
1676 } 1679 }
1677 } 1680 }
1678 } 1681 }
OLDNEW
« no previous file with comments | « test/generated_sdk/lib/async/async.dart ('k') | test/generated_sdk/lib/convert/convert.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698