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

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

Issue 2903063003: update lazy assignment operators (Closed)
Patch Set: Created 3 years, 7 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, UnmatchedToken; 7 import 'error_token.dart' show ErrorToken, UnmatchedToken;
8 8
9 import '../../scanner/token.dart' 9 import '../../scanner/token.dart'
10 show Keyword, KeywordTokenWithComment, Token, TokenType; 10 show Keyword, KeywordTokenWithComment, Token, TokenType;
(...skipping 11 matching lines...) Expand all
22 import 'characters.dart' show $LF, $STX; 22 import 'characters.dart' show $LF, $STX;
23 23
24 import 'abstract_scanner.dart' show AbstractScanner, closeBraceInfoFor; 24 import 'abstract_scanner.dart' show AbstractScanner, closeBraceInfoFor;
25 25
26 import '../util/link.dart' show Link; 26 import '../util/link.dart' show Link;
27 27
28 abstract class ArrayBasedScanner extends AbstractScanner { 28 abstract class ArrayBasedScanner extends AbstractScanner {
29 bool hasErrors = false; 29 bool hasErrors = false;
30 30
31 ArrayBasedScanner(bool includeComments, bool scanGenericMethodComments, 31 ArrayBasedScanner(bool includeComments, bool scanGenericMethodComments,
32 bool scanLazyAssignmentOperators, {int numberOfBytesHint}) 32 {int numberOfBytesHint})
33 : super(includeComments, scanGenericMethodComments, 33 : super(includeComments, scanGenericMethodComments,
34 scanLazyAssignmentOperators,
35 numberOfBytesHint: numberOfBytesHint); 34 numberOfBytesHint: numberOfBytesHint);
36 35
37 /** 36 /**
38 * The stack of open groups, e.g [: { ... ( .. :] 37 * The stack of open groups, e.g [: { ... ( .. :]
39 * Each BeginGroupToken has a pointer to the token where the group 38 * Each BeginGroupToken has a pointer to the token where the group
40 * ends. This field is set when scanning the end group token. 39 * ends. This field is set when scanning the end group token.
41 */ 40 */
42 Link<BeginGroupToken> groupingStack = const Link<BeginGroupToken>(); 41 Link<BeginGroupToken> groupingStack = const Link<BeginGroupToken>();
43 42
44 /** 43 /**
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 // | 294 // |
296 // next 295 // next
297 // v 296 // v
298 // EOF 297 // EOF
299 TokenType type = closeBraceInfoFor(begin); 298 TokenType type = closeBraceInfoFor(begin);
300 appendToken(new SyntheticSymbolToken(type, tokenStart, comments)); 299 appendToken(new SyntheticSymbolToken(type, tokenStart, comments));
301 begin.endGroup = tail; 300 begin.endGroup = tail;
302 appendErrorToken(new UnmatchedToken(begin)); 301 appendErrorToken(new UnmatchedToken(begin));
303 } 302 }
304 } 303 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart ('k') | pkg/front_end/lib/src/fasta/scanner/string_scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698