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

Unified Diff: lib/src/location.dart

Issue 1028813002: Introduce span with line context (Closed) Base URL: git@github.com:dart-lang/source_span.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/file.dart ('k') | lib/src/span.dart » ('j') | lib/src/span.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/location.dart
diff --git a/lib/src/location.dart b/lib/src/location.dart
index 27057424b1f3cf4ada9b14142654aabc24251c80..24259d55d10839a76899ec0de48966f3b408af21 100644
--- a/lib/src/location.dart
+++ b/lib/src/location.dart
@@ -77,8 +77,8 @@ class SourceLocation implements Comparable<SourceLocation> {
return offset - other.offset;
}
- bool operator ==(other) =>
- other is SourceLocation && sourceUrl == other.sourceUrl &&
+ bool operator ==(other) => other is SourceLocation &&
+ sourceUrl == other.sourceUrl &&
offset == other.offset;
int get hashCode => sourceUrl.hashCode + offset;
« no previous file with comments | « lib/src/file.dart ('k') | lib/src/span.dart » ('j') | lib/src/span.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698