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

Side by Side Diff: lib/collection/collection_patch.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 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 | « lib/async/async_patch.dart ('k') | lib/convert/convert_patch.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) 2015, the Dartino project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dartino 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 import 'dart:fletch._system' as fletch; 5 import 'dart:dartino._system' as dartino;
6 import 'dart:fletch._system' show patch; 6 import 'dart:dartino._system' show patch;
7 7
8 @patch class HashMap<K, V> { 8 @patch class HashMap<K, V> {
9 @patch factory HashMap({ bool equals(K key1, K key2), 9 @patch factory HashMap({ bool equals(K key1, K key2),
10 int hashCode(K key), 10 int hashCode(K key),
11 bool isValidKey(potentialKey) }) { 11 bool isValidKey(potentialKey) }) {
12 if (isValidKey == null) { 12 if (isValidKey == null) {
13 if (hashCode == null) { 13 if (hashCode == null) {
14 if (equals == null) { 14 if (equals == null) {
15 return new _HashMap<K, V>(); 15 return new _HashMap<K, V>();
16 } 16 }
(...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 E lookup(Object o) => _validKey(o) ? super.lookup(o) : null; 1411 E lookup(Object o) => _validKey(o) ? super.lookup(o) : null;
1412 bool remove(Object o) => _validKey(o) ? super.remove(o) : false; 1412 bool remove(Object o) => _validKey(o) ? super.remove(o) : false;
1413 1413
1414 _CompactLinkedCustomHashSet(this._equality, this._hasher, validKey) 1414 _CompactLinkedCustomHashSet(this._equality, this._hasher, validKey)
1415 : _validKey = (validKey != null) ? validKey : _defaultTypeTest; 1415 : _validKey = (validKey != null) ? validKey : _defaultTypeTest;
1416 1416
1417 Set<E> toSet() => 1417 Set<E> toSet() =>
1418 new _CompactLinkedCustomHashSet<E>(_equality, _hasher, _validKey) 1418 new _CompactLinkedCustomHashSet<E>(_equality, _hasher, _validKey)
1419 ..addAll(this); 1419 ..addAll(this);
1420 } 1420 }
OLDNEW
« no previous file with comments | « lib/async/async_patch.dart ('k') | lib/convert/convert_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698