| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 analyzer.dart.ast.syntactic_entity; | 5 library analyzer.dart.ast.syntactic_entity; |
| 6 | 6 |
| 7 /** | 7 export 'package:front_end/src/scanner/syntactic_entity.dart' |
| 8 * Interface representing a syntactic entity (either a token or an AST node) | 8 show SyntacticEntity; |
| 9 * which has a location and extent in the source file. | |
| 10 */ | |
| 11 abstract class SyntacticEntity { | |
| 12 /** | |
| 13 * Return the offset from the beginning of the file to the character after the | |
| 14 * last character of the syntactic entity. | |
| 15 */ | |
| 16 int get end; | |
| 17 | |
| 18 /** | |
| 19 * Return the number of characters in the syntactic entity's source range. | |
| 20 */ | |
| 21 int get length; | |
| 22 | |
| 23 /** | |
| 24 * Return the offset from the beginning of the file to the first character in | |
| 25 * the syntactic entity. | |
| 26 */ | |
| 27 int get offset; | |
| 28 } | |
| OLD | NEW |