| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.abstract_scanner; | 5 library fasta.scanner.abstract_scanner; |
| 6 | 6 |
| 7 import 'dart:collection' show ListMixin; | 7 import 'dart:collection' show ListMixin; |
| 8 | 8 |
| 9 import 'dart:typed_data' show Uint16List, Uint32List; | 9 import 'dart:typed_data' show Uint16List, Uint32List; |
| 10 | 10 |
| 11 import '../scanner.dart' | 11 import '../scanner.dart' |
| 12 show ErrorToken, Scanner, buildUnexpectedCharacterToken; | 12 show ErrorToken, Keyword, Scanner, buildUnexpectedCharacterToken; |
| 13 | 13 |
| 14 import 'error_token.dart' show UnterminatedToken; | 14 import 'error_token.dart' show UnterminatedToken; |
| 15 | 15 |
| 16 import 'keyword.dart' show KeywordState, Keyword; | 16 import 'keyword_state.dart' show KeywordState; |
| 17 | 17 |
| 18 import 'precedence.dart'; | 18 import 'precedence.dart'; |
| 19 | 19 |
| 20 import 'token.dart' | 20 import 'token.dart' |
| 21 show BeginGroupToken, CommentToken, DartDocToken, SymbolToken, Token; | 21 show BeginGroupToken, CommentToken, DartDocToken, SymbolToken, Token; |
| 22 | 22 |
| 23 import 'token_constants.dart'; | 23 import 'token_constants.dart'; |
| 24 | 24 |
| 25 import 'characters.dart'; | 25 import 'characters.dart'; |
| 26 | 26 |
| (...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1284 switchToUint32(newLength); | 1284 switchToUint32(newLength); |
| 1285 } | 1285 } |
| 1286 } | 1286 } |
| 1287 | 1287 |
| 1288 void switchToUint32(int newLength) { | 1288 void switchToUint32(int newLength) { |
| 1289 final newArray = new Uint32List(newLength); | 1289 final newArray = new Uint32List(newLength); |
| 1290 newArray.setRange(0, arrayLength, array); | 1290 newArray.setRange(0, arrayLength, array); |
| 1291 array = newArray; | 1291 array = newArray; |
| 1292 } | 1292 } |
| 1293 } | 1293 } |
| OLD | NEW |