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

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

Issue 2540993002: Fix DoubleLinkedListQueue misbehavior on concurrent modification. (Closed)
Patch Set: Created 4 years 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
« sdk/lib/collection/queue.dart ('K') | « sdk/lib/collection/queue.dart ('k') | no next file » | 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 part of dart.core; 5 part of dart.core;
6 6
7 /** 7 /**
8 * An integer or floating-point number. 8 * An integer or floating-point number.
9 * 9 *
10 * It is a compile-time error for any type other than [int] or [double] 10 * It is a compile-time error for any type other than [int] or [double]
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 */ 44 */
45 bool operator==(Object other); 45 bool operator==(Object other);
46 46
47 /** 47 /**
48 * Returns a hash code for a numerical value. 48 * Returns a hash code for a numerical value.
49 * 49 *
50 * The hash code is compatible with equality. It returns the same value 50 * The hash code is compatible with equality. It returns the same value
51 * for an [int] and a [double] with the same numerical value, and therefore 51 * for an [int] and a [double] with the same numerical value, and therefore
52 * the same value for the doubles zero and minus zero. 52 * the same value for the doubles zero and minus zero.
53 * 53 *
54 * No guarantees are made about the hash code of NaN. 54 * No guarantees are made about the hash code of NaN values.
55 */ 55 */
56 int get hashCode; 56 int get hashCode;
57 57
58 /** 58 /**
59 * Compares this to `other`. 59 * Compares this to `other`.
60 * 60 *
61 * Returns a negative number if `this` is less than `other`, zero if they are 61 * Returns a negative number if `this` is less than `other`, zero if they are
62 * equal, and a positive number if `this` is greater than `other`. 62 * equal, and a positive number if `this` is greater than `other`.
63 * 63 *
64 * The orderding represented by this method is a total ordering of [num] 64 * The orderding represented by this method is a total ordering of [num]
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 result = double.parse(source, _returnDoubleNull); 444 result = double.parse(source, _returnDoubleNull);
445 if (result != null) return result; 445 if (result != null) return result;
446 if (onError == null) throw new FormatException(input); 446 if (onError == null) throw new FormatException(input);
447 return onError(input); 447 return onError(input);
448 } 448 }
449 449
450 /** Helper functions for [parse]. */ 450 /** Helper functions for [parse]. */
451 static int _returnIntNull(String _) => null; 451 static int _returnIntNull(String _) => null;
452 static double _returnDoubleNull(String _) => null; 452 static double _returnDoubleNull(String _) => null;
453 } 453 }
OLDNEW
« sdk/lib/collection/queue.dart ('K') | « sdk/lib/collection/queue.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698