| 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 import 'dart:collection'; | 9 import 'dart:collection'; |
| 10 | 10 |
| (...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 | 993 |
| 994 static const TokenType HASH = | 994 static const TokenType HASH = |
| 995 const TokenType._('HASH', TokenClass.NO_CLASS, '#'); | 995 const TokenType._('HASH', TokenClass.NO_CLASS, '#'); |
| 996 | 996 |
| 997 static const TokenType INDEX = | 997 static const TokenType INDEX = |
| 998 const TokenType._('INDEX', TokenClass.UNARY_POSTFIX_OPERATOR, '[]'); | 998 const TokenType._('INDEX', TokenClass.UNARY_POSTFIX_OPERATOR, '[]'); |
| 999 | 999 |
| 1000 static const TokenType INDEX_EQ = | 1000 static const TokenType INDEX_EQ = |
| 1001 const TokenType._('INDEX_EQ', TokenClass.UNARY_POSTFIX_OPERATOR, '[]='); | 1001 const TokenType._('INDEX_EQ', TokenClass.UNARY_POSTFIX_OPERATOR, '[]='); |
| 1002 | 1002 |
| 1003 static const TokenType IS = | |
| 1004 const TokenType._('IS', TokenClass.RELATIONAL_OPERATOR, 'is'); | |
| 1005 | |
| 1006 static const TokenType LT = | 1003 static const TokenType LT = |
| 1007 const TokenType._('LT', TokenClass.RELATIONAL_OPERATOR, '<'); | 1004 const TokenType._('LT', TokenClass.RELATIONAL_OPERATOR, '<'); |
| 1008 | 1005 |
| 1009 static const TokenType LT_EQ = | 1006 static const TokenType LT_EQ = |
| 1010 const TokenType._('LT_EQ', TokenClass.RELATIONAL_OPERATOR, '<='); | 1007 const TokenType._('LT_EQ', TokenClass.RELATIONAL_OPERATOR, '<='); |
| 1011 | 1008 |
| 1012 static const TokenType LT_LT = | 1009 static const TokenType LT_LT = |
| 1013 const TokenType._('LT_LT', TokenClass.SHIFT_OPERATOR, '<<'); | 1010 const TokenType._('LT_LT', TokenClass.SHIFT_OPERATOR, '<<'); |
| 1014 | 1011 |
| 1015 static const TokenType LT_LT_EQ = | 1012 static const TokenType LT_LT_EQ = |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1288 */ | 1285 */ |
| 1289 class _EndOfFileTokenType extends TokenType { | 1286 class _EndOfFileTokenType extends TokenType { |
| 1290 /** | 1287 /** |
| 1291 * Initialize a newly created token. | 1288 * Initialize a newly created token. |
| 1292 */ | 1289 */ |
| 1293 const _EndOfFileTokenType() : super._('EOF', TokenClass.NO_CLASS, ''); | 1290 const _EndOfFileTokenType() : super._('EOF', TokenClass.NO_CLASS, ''); |
| 1294 | 1291 |
| 1295 @override | 1292 @override |
| 1296 String toString() => '-eof-'; | 1293 String toString() => '-eof-'; |
| 1297 } | 1294 } |
| OLD | NEW |