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

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

Issue 2780483002: Complain about assignments to parenthesized expressions. (Closed)
Patch Set: Created 3 years, 9 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 ErrorToken; 7 import 'error_token.dart' show ErrorToken;
8 8
9 import 'keyword.dart' show Keyword; 9 import 'keyword.dart' show Keyword;
10 10
11 import 'precedence.dart' show EOF_INFO, PrecedenceInfo; 11 import 'precedence.dart' show PrecedenceInfo;
12 12
13 import 'token.dart' 13 import '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,
20 SymbolToken, 20 SymbolToken,
21 Token; 21 Token;
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 * something which cannot possibly be part of a type parameter/argument 313 * something which cannot possibly be part of a type parameter/argument
314 * list, like the '=' in the above example. 314 * list, like the '=' in the above example.
315 */ 315 */
316 void discardOpenLt() { 316 void discardOpenLt() {
317 while (!groupingStack.isEmpty && 317 while (!groupingStack.isEmpty &&
318 identical(groupingStack.head.kind, LT_TOKEN)) { 318 identical(groupingStack.head.kind, LT_TOKEN)) {
319 groupingStack = groupingStack.tail; 319 groupingStack = groupingStack.tail;
320 } 320 }
321 } 321 }
322 } 322 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/token_stream_rewriter.dart ('k') | pkg/front_end/test/fasta/testing.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698