Skip to content

Commit 4e30af0

Browse files
committed
much better indeed
1 parent c5a436d commit 4e30af0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkgs/source_maps/lib/builder.dart

+2-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class SourceMapBuilder {
6060
}
6161

6262
/// An entry in the source map builder.
63-
class Entry implements Comparable {
63+
class Entry implements Comparable<Entry> {
6464
/// Span denoting the original location in the input source file
6565
final SourceLocation source;
6666

@@ -77,8 +77,7 @@ class Entry implements Comparable {
7777
/// location in the target file. We sort primarily by the target offset
7878
/// because source map files are encoded by printing each mapping in order as
7979
/// they appear in the target file.
80-
int compareTo(_other) {
81-
Entry other = _other as Entry;
80+
int compareTo(Entry other) {
8281
int res = target.compareTo(other.target);
8382
if (res != 0) return res;
8483
res = source.sourceUrl.toString().compareTo(

0 commit comments

Comments
 (0)