Skip to content

Commit 8e88234

Browse files
author
Dart CI
committed
Version 3.10.0-83.0.dev
Merge 9f2218e into dev
2 parents 95ca00b + 9f2218e commit 8e88234

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

pkg/analyzer/lib/src/fine/manifest_id.dart

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import 'package:collection/collection.dart';
1313
/// We give a new identifier each time when just anything changes about
1414
/// an element. Even if an element changes as `A` to `B` to `A`, it will get
1515
/// `id1`, `id2`, `id3`. Never `id1` again.
16-
class ManifestItemId {
16+
class ManifestItemId implements Comparable<ManifestItemId> {
1717
static final _randomGenerator = Random();
1818

1919
final int timestamp;
@@ -42,6 +42,15 @@ class ManifestItemId {
4242
other.randomBits == randomBits;
4343
}
4444

45+
@override
46+
int compareTo(ManifestItemId other) {
47+
var result = timestamp.compareTo(other.timestamp);
48+
if (result != 0) {
49+
return result;
50+
}
51+
return randomBits.compareTo(other.randomBits);
52+
}
53+
4554
@override
4655
String toString() {
4756
return '($timestamp, $randomBits)';

tools/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ CHANNEL dev
2727
MAJOR 3
2828
MINOR 10
2929
PATCH 0
30-
PRERELEASE 82
30+
PRERELEASE 83
3131
PRERELEASE_PATCH 0

0 commit comments

Comments
 (0)