Chromium Code Reviews| 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 front_end.src.scanner.syntactic_entity; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Interface representing a syntactic entity (either a token or an AST node) | 8 * Interface representing a syntactic entity (either a token or an AST node) |
| 9 * which has a location and extent in the source file. | 9 * which has a location and extent in the source file. |
| 10 */ | 10 */ |
| 11 abstract class SyntacticEntity { | 11 abstract class SyntacticEntity { |
|
Brian Wilkerson
2016/11/08 20:53:24
This isn't a scanner-specific class, so it seems w
Paul Berry
2016/11/08 21:47:06
Acknowledged. I will address this in a follow-up
| |
| 12 /** | 12 /** |
| 13 * Return the offset from the beginning of the file to the character after the | 13 * Return the offset from the beginning of the file to the character after the |
| 14 * last character of the syntactic entity. | 14 * last character of the syntactic entity. |
| 15 */ | 15 */ |
| 16 int get end; | 16 int get end; |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * Return the number of characters in the syntactic entity's source range. | 19 * Return the number of characters in the syntactic entity's source range. |
| 20 */ | 20 */ |
| 21 int get length; | 21 int get length; |
| 22 | 22 |
| 23 /** | 23 /** |
| 24 * Return the offset from the beginning of the file to the first character in | 24 * Return the offset from the beginning of the file to the first character in |
| 25 * the syntactic entity. | 25 * the syntactic entity. |
| 26 */ | 26 */ |
| 27 int get offset; | 27 int get offset; |
| 28 } | 28 } |
| OLD | NEW |