| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 source_span.location; | 5 library source_span.location; |
| 6 | 6 |
| 7 import 'span.dart'; | 7 import 'span.dart'; |
| 8 | 8 |
| 9 // TODO(nweiz): Use SourceLocationMixin once we decide to cut a release with | 9 // TODO(nweiz): Use SourceLocationMixin once we decide to cut a release with |
| 10 // breaking changes. See SourceLocationMixin for details. | 10 // breaking changes. See SourceLocationMixin for details. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 String toString() => '<$runtimeType: $offset $toolString>'; | 92 String toString() => '<$runtimeType: $offset $toolString>'; |
| 93 } | 93 } |
| 94 | 94 |
| 95 /// A base class for source locations with [offset], [line], and [column] known | 95 /// A base class for source locations with [offset], [line], and [column] known |
| 96 /// at construction time. | 96 /// at construction time. |
| 97 class SourceLocationBase extends SourceLocation { | 97 class SourceLocationBase extends SourceLocation { |
| 98 SourceLocationBase(int offset, {sourceUrl, int line, int column}) | 98 SourceLocationBase(int offset, {sourceUrl, int line, int column}) |
| 99 : super(offset, sourceUrl: sourceUrl, line: line, column: column); | 99 : super(offset, sourceUrl: sourceUrl, line: line, column: column); |
| 100 } | 100 } |
| OLD | NEW |