OLD | NEW |
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.stack_listener; | 5 library fasta.stack_listener; |
6 | 6 |
7 import 'package:front_end/src/fasta/parser.dart' show ErrorKind, Listener; | 7 import '../parser.dart' show ErrorKind, Listener; |
8 | 8 |
9 import 'package:front_end/src/fasta/parser/identifier_context.dart' | 9 import '../parser/identifier_context.dart' show IdentifierContext; |
10 show IdentifierContext; | |
11 | 10 |
12 import 'package:front_end/src/fasta/scanner.dart' show BeginGroupToken, Token; | 11 import '../scanner.dart' show BeginGroupToken, Token; |
13 | 12 |
14 import 'package:kernel/ast.dart' show AsyncMarker; | 13 import 'package:kernel/ast.dart' show AsyncMarker; |
15 | 14 |
16 import '../errors.dart' show inputError, internalError; | 15 import '../errors.dart' show inputError, internalError; |
17 | 16 |
18 import '../quote.dart' show unescapeString; | 17 import '../quote.dart' show unescapeString; |
19 | 18 |
20 import '../messages.dart' as messages; | 19 import '../messages.dart' as messages; |
21 | 20 |
22 enum NullValue { | 21 enum NullValue { |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 list.setRange(0, arrayLength, array); | 284 list.setRange(0, arrayLength, array); |
286 return list; | 285 return list; |
287 } | 286 } |
288 | 287 |
289 void _grow() { | 288 void _grow() { |
290 final List newTable = new List(array.length * 2); | 289 final List newTable = new List(array.length * 2); |
291 newTable.setRange(0, array.length, array, 0); | 290 newTable.setRange(0, array.length, array, 0); |
292 array = newTable; | 291 array = newTable; |
293 } | 292 } |
294 } | 293 } |
OLD | NEW |