| 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 /** | 5 /** |
| 6 * Defines the tokens that are produced by the scanner, used by the parser, and | 6 * Defines the tokens that are produced by the scanner, used by the parser, and |
| 7 * referenced from the [AST structure](ast.dart). | 7 * referenced from the [AST structure](ast.dart). |
| 8 */ | 8 */ |
| 9 | |
| 10 import 'dart:collection'; | 9 import 'dart:collection'; |
| 11 | 10 |
| 11 import 'package:front_end/src/base/syntactic_entity.dart'; |
| 12 import 'package:front_end/src/scanner/string_utilities.dart'; | 12 import 'package:front_end/src/scanner/string_utilities.dart'; |
| 13 import 'package:front_end/src/scanner/syntactic_entity.dart'; | |
| 14 | 13 |
| 15 /** | 14 /** |
| 16 * The opening half of a grouping pair of tokens. This is used for curly | 15 * The opening half of a grouping pair of tokens. This is used for curly |
| 17 * brackets ('{'), parentheses ('('), and square brackets ('['). | 16 * brackets ('{'), parentheses ('('), and square brackets ('['). |
| 18 */ | 17 */ |
| 19 class BeginToken extends SimpleToken { | 18 class BeginToken extends SimpleToken { |
| 20 /** | 19 /** |
| 21 * The token that corresponds to this token. | 20 * The token that corresponds to this token. |
| 22 */ | 21 */ |
| 23 Token endToken; | 22 Token endToken; |
| (...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1285 */ | 1284 */ |
| 1286 class _EndOfFileTokenType extends TokenType { | 1285 class _EndOfFileTokenType extends TokenType { |
| 1287 /** | 1286 /** |
| 1288 * Initialize a newly created token. | 1287 * Initialize a newly created token. |
| 1289 */ | 1288 */ |
| 1290 const _EndOfFileTokenType() : super._('EOF', TokenClass.NO_CLASS, ''); | 1289 const _EndOfFileTokenType() : super._('EOF', TokenClass.NO_CLASS, ''); |
| 1291 | 1290 |
| 1292 @override | 1291 @override |
| 1293 String toString() => '-eof-'; | 1292 String toString() => '-eof-'; |
| 1294 } | 1293 } |
| OLD | NEW |