commit | 3cda7b13720f4ce886e073e2225a4c43d3a2a253 | [log] [tgz] |
---|---|---|
author | sigmund@google.com <sigmund@google.com> | Tue Jul 16 16:01:36 2013 +0000 |
committer | sigmund@google.com <sigmund@google.com> | Tue Jul 16 16:01:36 2013 +0000 |
tree | dce318f539bb34048eecf65c3cae9ec8a166dad2 | |
parent | 62f539be1ca466605d632a1682e795036e9ecd43 [diff] |
Address hint discovered by dart2js: add hashCode to source_maps.Span R=dgrove@google.com Review URL: https://codereview.chromium.org//19315003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/source_maps@25050 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/lib/span.dart b/lib/span.dart index 7ca0ca9..1d2152d 100644 --- a/lib/span.dart +++ b/lib/span.dart
@@ -69,6 +69,8 @@ bool operator ==(Span other) => sourceUrl == other.sourceUrl && start == other.start && end == other.end; + int get hashCode => sourceUrl.hashCode + start + (31 * (end - start)); + String toString() => '<$runtimeType: $start $end $formatLocation $text>'; }