| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library dart2js.diagnostics.source_span; | 5 library dart2js.diagnostics.source_span; |
| 6 | 6 |
| 7 import '../scanner/scannerlib.dart' show | 7 import '../scanner/token.dart' show |
| 8 Token; | 8 Token; |
| 9 import '../tree/tree.dart' show | 9 import '../tree/tree.dart' show |
| 10 Node; | 10 Node; |
| 11 import 'spannable.dart' show | 11 import 'spannable.dart' show |
| 12 Spannable; | 12 Spannable; |
| 13 | 13 |
| 14 class SourceSpan implements Spannable { | 14 class SourceSpan implements Spannable { |
| 15 final Uri uri; | 15 final Uri uri; |
| 16 final int begin; | 16 final int begin; |
| 17 final int end; | 17 final int end; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 42 bool operator ==(other) { | 42 bool operator ==(other) { |
| 43 if (identical(this, other)) return true; | 43 if (identical(this, other)) return true; |
| 44 if (other is! SourceSpan) return false; | 44 if (other is! SourceSpan) return false; |
| 45 return uri == other.uri && | 45 return uri == other.uri && |
| 46 begin == other.begin && | 46 begin == other.begin && |
| 47 end == other.end; | 47 end == other.end; |
| 48 } | 48 } |
| 49 | 49 |
| 50 String toString() => 'SourceSpan($uri, $begin, $end)'; | 50 String toString() => 'SourceSpan($uri, $begin, $end)'; |
| 51 } | 51 } |
| OLD | NEW |