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

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

Issue 2797133008: merge fasta.Keyword into analyzer.Keyword (Closed)
Patch Set: rebase Created 3 years, 8 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) 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
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 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner.dart ('k') | pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698