| 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/scanner/error_token.dart' show ErrorToken; | 7 import 'package:front_end/src/fasta/scanner/error_token.dart' show ErrorToken; |
| 8 | 8 |
| 9 import 'package:front_end/src/fasta/scanner/keyword.dart' show Keyword; | 9 import 'package:front_end/src/scanner/token.dart' show Keyword; |
| 10 | 10 |
| 11 import 'package:front_end/src/fasta/scanner/precedence.dart'; | 11 import 'package:front_end/src/fasta/scanner/precedence.dart'; |
| 12 | 12 |
| 13 import 'package:front_end/src/fasta/scanner/token.dart' | 13 import 'package:front_end/src/fasta/scanner/token.dart' |
| 14 show | 14 show |
| 15 BeginGroupToken, | 15 BeginGroupToken, |
| 16 CommentToken, | 16 CommentToken, |
| 17 DartDocToken, | 17 DartDocToken, |
| 18 KeywordToken, | 18 KeywordToken, |
| 19 StringToken, | 19 StringToken, |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 case PERIOD_PERIOD_PERIOD_TOKEN: | 745 case PERIOD_PERIOD_PERIOD_TOKEN: |
| 746 return TokenType.PERIOD_PERIOD_PERIOD; | 746 return TokenType.PERIOD_PERIOD_PERIOD; |
| 747 case GENERIC_METHOD_TYPE_LIST_TOKEN: | 747 case GENERIC_METHOD_TYPE_LIST_TOKEN: |
| 748 return TokenType.GENERIC_METHOD_TYPE_LIST; | 748 return TokenType.GENERIC_METHOD_TYPE_LIST; |
| 749 case GENERIC_METHOD_TYPE_ASSIGN_TOKEN: | 749 case GENERIC_METHOD_TYPE_ASSIGN_TOKEN: |
| 750 return TokenType.GENERIC_METHOD_TYPE_ASSIGN; | 750 return TokenType.GENERIC_METHOD_TYPE_ASSIGN; |
| 751 default: | 751 default: |
| 752 return internalError("Unhandled token ${token.info}"); | 752 return internalError("Unhandled token ${token.info}"); |
| 753 } | 753 } |
| 754 } | 754 } |
| OLD | NEW |