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

Side by Side Diff: pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart

Issue 2664593002: Port parser and scanner fixes from rasta branch. (Closed)
Patch Set: Rebased on ef8ec26cf36d1f07b4fdf5d605003210826ae1c2. 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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.scanner.array_based_scanner; 5 library fasta.scanner.array_based_scanner;
6 6
7 import 'error_token.dart' show
8 ErrorToken;
9
7 import 'keyword.dart' show 10 import 'keyword.dart' show
8 Keyword; 11 Keyword;
9 12
10 import 'precedence.dart' show 13 import 'precedence.dart' show
11 COMMENT_INFO, 14 COMMENT_INFO,
12 EOF_INFO, 15 EOF_INFO,
13 PrecedenceInfo; 16 PrecedenceInfo;
14 17
15 import 'token.dart' show 18 import 'token.dart' show
16 BeginGroupToken, 19 BeginGroupToken,
17 ErrorToken,
18 KeywordToken, 20 KeywordToken,
19 SymbolToken, 21 SymbolToken,
20 Token; 22 Token;
21 23
22 import 'token_constants.dart' show 24 import 'token_constants.dart' show
23 LT_TOKEN, 25 LT_TOKEN,
24 OPEN_CURLY_BRACKET_TOKEN, 26 OPEN_CURLY_BRACKET_TOKEN,
25 STRING_INTERPOLATION_TOKEN; 27 STRING_INTERPOLATION_TOKEN;
26 28
27 import 'characters.dart' show 29 import 'characters.dart' show
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 * something which cannot possibly be part of a type parameter/argument 244 * something which cannot possibly be part of a type parameter/argument
243 * list, like the '=' in the above example. 245 * list, like the '=' in the above example.
244 */ 246 */
245 void discardOpenLt() { 247 void discardOpenLt() {
246 while (!groupingStack.isEmpty && 248 while (!groupingStack.isEmpty &&
247 identical(groupingStack.head.kind, LT_TOKEN)) { 249 identical(groupingStack.head.kind, LT_TOKEN)) {
248 groupingStack = groupingStack.tail; 250 groupingStack = groupingStack.tail;
249 } 251 }
250 } 252 }
251 } 253 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart ('k') | pkg/front_end/lib/src/fasta/scanner/error_token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698