Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: pkg/front_end/lib/src/fasta/analyzer/token_utils.dart

Issue 2691273002: Use kernel transformation and VmTarget. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_target.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_target.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698