| 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 fasta.analyzer.token_utils; | 5 library fasta.analyzer.token_utils; |
| 6 | 6 |
| 7 import 'package:front_end/src/fasta/parser/error_kind.dart' show | 7 import 'package:front_end/src/fasta/parser/error_kind.dart' show |
| 8 ErrorKind; | 8 ErrorKind; |
| 9 | 9 |
| 10 import 'package:front_end/src/fasta/scanner/error_token.dart' show | 10 import 'package:front_end/src/fasta/scanner/error_token.dart' show |
| 11 ErrorToken, | 11 ErrorToken; |
| 12 UnmatchedToken; | |
| 13 | 12 |
| 14 import 'package:front_end/src/fasta/scanner/keyword.dart' show | 13 import 'package:front_end/src/fasta/scanner/keyword.dart' show |
| 15 Keyword; | 14 Keyword; |
| 16 | 15 |
| 17 import 'package:front_end/src/fasta/scanner/precedence.dart'; | 16 import 'package:front_end/src/fasta/scanner/precedence.dart'; |
| 18 | 17 |
| 19 import 'package:front_end/src/fasta/scanner/token.dart' show | 18 import 'package:front_end/src/fasta/scanner/token.dart' show |
| 20 BeginGroupToken, | 19 BeginGroupToken, |
| 21 KeywordToken, | 20 KeywordToken, |
| 22 StringToken, | 21 StringToken, |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 case BACKSLASH_TOKEN: return TokenType.BACKSLASH; | 635 case BACKSLASH_TOKEN: return TokenType.BACKSLASH; |
| 637 case PERIOD_PERIOD_PERIOD_TOKEN: return TokenType.PERIOD_PERIOD_PERIOD; | 636 case PERIOD_PERIOD_PERIOD_TOKEN: return TokenType.PERIOD_PERIOD_PERIOD; |
| 638 // case GENERIC_METHOD_TYPE_LIST_TOKEN: | 637 // case GENERIC_METHOD_TYPE_LIST_TOKEN: |
| 639 // return TokenType.GENERIC_METHOD_TYPE_LIST; | 638 // return TokenType.GENERIC_METHOD_TYPE_LIST; |
| 640 // case GENERIC_METHOD_TYPE_ASSIGN_TOKEN: | 639 // case GENERIC_METHOD_TYPE_ASSIGN_TOKEN: |
| 641 // return TokenType.GENERIC_METHOD_TYPE_ASSIGN; | 640 // return TokenType.GENERIC_METHOD_TYPE_ASSIGN; |
| 642 default: | 641 default: |
| 643 return internalError("Unhandled token ${token.info}"); | 642 return internalError("Unhandled token ${token.info}"); |
| 644 } | 643 } |
| 645 } | 644 } |
| OLD | NEW |