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

Unified Diff: pkg/compiler/lib/src/diagnostics/source_span.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | « pkg/compiler/lib/src/diagnostics/messages.dart ('k') | pkg/compiler/lib/src/diagnostics/spannable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/diagnostics/source_span.dart
diff --git a/pkg/compiler/lib/src/diagnostics/source_span.dart b/pkg/compiler/lib/src/diagnostics/source_span.dart
index 25bdc6cced374d5952671fcc876ad2cc0ee47754..d53ebae2274acd55459949363a7f3a6aff20c014 100644
--- a/pkg/compiler/lib/src/diagnostics/source_span.dart
+++ b/pkg/compiler/lib/src/diagnostics/source_span.dart
@@ -4,12 +4,9 @@
library dart2js.diagnostics.source_span;
-import '../tokens/token.dart' show
- Token;
-import '../tree/tree.dart' show
- Node;
-import 'spannable.dart' show
- Spannable;
+import '../tokens/token.dart' show Token;
+import '../tree/tree.dart' show Node;
+import 'spannable.dart' show Spannable;
class SourceSpan implements Spannable {
final Uri uri;
@@ -34,17 +31,13 @@ class SourceSpan implements Spannable {
}
int get hashCode {
- return 13 * uri.hashCode +
- 17 * begin.hashCode +
- 19 * end.hashCode;
+ return 13 * uri.hashCode + 17 * begin.hashCode + 19 * end.hashCode;
}
bool operator ==(other) {
if (identical(this, other)) return true;
if (other is! SourceSpan) return false;
- return uri == other.uri &&
- begin == other.begin &&
- end == other.end;
+ return uri == other.uri && begin == other.begin && end == other.end;
}
String toString() => 'SourceSpan($uri, $begin, $end)';
« no previous file with comments | « pkg/compiler/lib/src/diagnostics/messages.dart ('k') | pkg/compiler/lib/src/diagnostics/spannable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698