| OLD | NEW |
| 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 part of scanner; | 5 part of scanner; |
| 6 | 6 |
| 7 abstract class ArrayBasedScanner extends AbstractScanner { | 7 abstract class ArrayBasedScanner extends AbstractScanner { |
| 8 ArrayBasedScanner(SourceFile file, bool includeComments, | 8 ArrayBasedScanner(SourceFile file, bool includeComments) |
| 9 bool enableNullAwareOperators) | 9 : super(file, includeComments); |
| 10 : super(file, includeComments, enableNullAwareOperators); | |
| 11 | 10 |
| 12 /** | 11 /** |
| 13 * The stack of open groups, e.g [: { ... ( .. :] | 12 * The stack of open groups, e.g [: { ... ( .. :] |
| 14 * Each BeginGroupToken has a pointer to the token where the group | 13 * Each BeginGroupToken has a pointer to the token where the group |
| 15 * ends. This field is set when scanning the end group token. | 14 * ends. This field is set when scanning the end group token. |
| 16 */ | 15 */ |
| 17 Link<BeginGroupToken> groupingStack = const Link<BeginGroupToken>(); | 16 Link<BeginGroupToken> groupingStack = const Link<BeginGroupToken>(); |
| 18 | 17 |
| 19 /** | 18 /** |
| 20 * Appends a fixed token whose kind and content is determined by [info]. | 19 * Appends a fixed token whose kind and content is determined by [info]. |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 * something which cannot possibly be part of a type parameter/argument | 211 * something which cannot possibly be part of a type parameter/argument |
| 213 * list, like the '=' in the above example. | 212 * list, like the '=' in the above example. |
| 214 */ | 213 */ |
| 215 void discardOpenLt() { | 214 void discardOpenLt() { |
| 216 while (!groupingStack.isEmpty | 215 while (!groupingStack.isEmpty |
| 217 && identical(groupingStack.head.kind, LT_TOKEN)) { | 216 && identical(groupingStack.head.kind, LT_TOKEN)) { |
| 218 groupingStack = groupingStack.tail; | 217 groupingStack = groupingStack.tail; |
| 219 } | 218 } |
| 220 } | 219 } |
| 221 } | 220 } |
| OLD | NEW |