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

Side by Side Diff: pkg/analyzer/lib/src/generated/scanner.dart

Issue 229653004: New analyzer snapshot with MapIterator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.scanner; 8 library engine.scanner;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 static const Keyword VOID = const Keyword.con1('VOID', 30, "void"); 328 static const Keyword VOID = const Keyword.con1('VOID', 30, "void");
329 329
330 static const Keyword WHILE = const Keyword.con1('WHILE', 31, "while"); 330 static const Keyword WHILE = const Keyword.con1('WHILE', 31, "while");
331 331
332 static const Keyword WITH = const Keyword.con1('WITH', 32, "with"); 332 static const Keyword WITH = const Keyword.con1('WITH', 32, "with");
333 333
334 static const Keyword ABSTRACT = const Keyword.con2('ABSTRACT', 33, "abstract", true); 334 static const Keyword ABSTRACT = const Keyword.con2('ABSTRACT', 33, "abstract", true);
335 335
336 static const Keyword AS = const Keyword.con2('AS', 34, "as", true); 336 static const Keyword AS = const Keyword.con2('AS', 34, "as", true);
337 337
338 static const Keyword DYNAMIC = const Keyword.con2('DYNAMIC', 35, "dynamic", tr ue); 338 static const Keyword DEFERRED = const Keyword.con2('DEFERRED', 35, "deferred", true);
339 339
340 static const Keyword EXPORT = const Keyword.con2('EXPORT', 36, "export", true) ; 340 static const Keyword DYNAMIC = const Keyword.con2('DYNAMIC', 36, "dynamic", tr ue);
341 341
342 static const Keyword EXTERNAL = const Keyword.con2('EXTERNAL', 37, "external", true); 342 static const Keyword EXPORT = const Keyword.con2('EXPORT', 37, "export", true) ;
343 343
344 static const Keyword FACTORY = const Keyword.con2('FACTORY', 38, "factory", tr ue); 344 static const Keyword EXTERNAL = const Keyword.con2('EXTERNAL', 38, "external", true);
345 345
346 static const Keyword GET = const Keyword.con2('GET', 39, "get", true); 346 static const Keyword FACTORY = const Keyword.con2('FACTORY', 39, "factory", tr ue);
347 347
348 static const Keyword IMPLEMENTS = const Keyword.con2('IMPLEMENTS', 40, "implem ents", true); 348 static const Keyword GET = const Keyword.con2('GET', 40, "get", true);
349 349
350 static const Keyword IMPORT = const Keyword.con2('IMPORT', 41, "import", true) ; 350 static const Keyword IMPLEMENTS = const Keyword.con2('IMPLEMENTS', 41, "implem ents", true);
351 351
352 static const Keyword LIBRARY = const Keyword.con2('LIBRARY', 42, "library", tr ue); 352 static const Keyword IMPORT = const Keyword.con2('IMPORT', 42, "import", true) ;
353 353
354 static const Keyword OPERATOR = const Keyword.con2('OPERATOR', 43, "operator", true); 354 static const Keyword LIBRARY = const Keyword.con2('LIBRARY', 43, "library", tr ue);
355 355
356 static const Keyword PART = const Keyword.con2('PART', 44, "part", true); 356 static const Keyword OPERATOR = const Keyword.con2('OPERATOR', 44, "operator", true);
357 357
358 static const Keyword SET = const Keyword.con2('SET', 45, "set", true); 358 static const Keyword PART = const Keyword.con2('PART', 45, "part", true);
359 359
360 static const Keyword STATIC = const Keyword.con2('STATIC', 46, "static", true) ; 360 static const Keyword SET = const Keyword.con2('SET', 46, "set", true);
361 361
362 static const Keyword TYPEDEF = const Keyword.con2('TYPEDEF', 47, "typedef", tr ue); 362 static const Keyword STATIC = const Keyword.con2('STATIC', 47, "static", true) ;
363
364 static const Keyword TYPEDEF = const Keyword.con2('TYPEDEF', 48, "typedef", tr ue);
363 365
364 static const List<Keyword> values = const [ 366 static const List<Keyword> values = const [
365 ASSERT, 367 ASSERT,
366 BREAK, 368 BREAK,
367 CASE, 369 CASE,
368 CATCH, 370 CATCH,
369 CLASS, 371 CLASS,
370 CONST, 372 CONST,
371 CONTINUE, 373 CONTINUE,
372 DEFAULT, 374 DEFAULT,
(...skipping 17 matching lines...) Expand all
390 THIS, 392 THIS,
391 THROW, 393 THROW,
392 TRUE, 394 TRUE,
393 TRY, 395 TRY,
394 VAR, 396 VAR,
395 VOID, 397 VOID,
396 WHILE, 398 WHILE,
397 WITH, 399 WITH,
398 ABSTRACT, 400 ABSTRACT,
399 AS, 401 AS,
402 DEFERRED,
400 DYNAMIC, 403 DYNAMIC,
401 EXPORT, 404 EXPORT,
402 EXTERNAL, 405 EXTERNAL,
403 FACTORY, 406 FACTORY,
404 GET, 407 GET,
405 IMPLEMENTS, 408 IMPLEMENTS,
406 IMPORT, 409 IMPORT,
407 LIBRARY, 410 LIBRARY,
408 OPERATOR, 411 OPERATOR,
409 PART, 412 PART,
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 _beginToken(); 1453 _beginToken();
1451 _appendEndToken(TokenType.CLOSE_CURLY_BRACKET, TokenType.STRING_INTERP OLATION_EXPRESSION); 1454 _appendEndToken(TokenType.CLOSE_CURLY_BRACKET, TokenType.STRING_INTERP OLATION_EXPRESSION);
1452 next = _reader.advance(); 1455 next = _reader.advance();
1453 _beginToken(); 1456 _beginToken();
1454 return next; 1457 return next;
1455 } 1458 }
1456 } else { 1459 } else {
1457 next = bigSwitch(next); 1460 next = bigSwitch(next);
1458 } 1461 }
1459 } 1462 }
1460 if (next == -1) {
1461 return next;
1462 }
1463 next = _reader.advance();
1464 _beginToken();
1465 return next; 1463 return next;
1466 } 1464 }
1467 1465
1468 int _tokenizeInterpolatedIdentifier(int next, int start) { 1466 int _tokenizeInterpolatedIdentifier(int next, int start) {
1469 _appendStringTokenWithOffset(TokenType.STRING_INTERPOLATION_IDENTIFIER, "\$" , 0); 1467 _appendStringTokenWithOffset(TokenType.STRING_INTERPOLATION_IDENTIFIER, "\$" , 0);
1470 if ((0x41 <= next && next <= 0x5A) || (0x61 <= next && next <= 0x7A) || next == 0x5F) { 1468 if ((0x41 <= next && next <= 0x5A) || (0x61 <= next && next <= 0x7A) || next == 0x5F) {
1471 _beginToken(); 1469 _beginToken();
1472 next = _tokenizeKeywordOrIdentifier(next, false); 1470 next = _tokenizeKeywordOrIdentifier(next, false);
1473 } 1471 }
1474 _beginToken(); 1472 _beginToken();
(...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after
2684 */ 2682 */
2685 bool get isUserDefinableOperator => identical(lexeme, "==") || identical(lexem e, "~") || identical(lexeme, "[]") || identical(lexeme, "[]=") || identical(lexe me, "*") || identical(lexeme, "/") || identical(lexeme, "%") || identical(lexeme , "~/") || identical(lexeme, "+") || identical(lexeme, "-") || identical(lexeme, "<<") || identical(lexeme, ">>") || identical(lexeme, ">=") || identical(lexeme , ">") || identical(lexeme, "<=") || identical(lexeme, "<") || identical(lexeme, "&") || identical(lexeme, "^") || identical(lexeme, "|"); 2683 bool get isUserDefinableOperator => identical(lexeme, "==") || identical(lexem e, "~") || identical(lexeme, "[]") || identical(lexeme, "[]=") || identical(lexe me, "*") || identical(lexeme, "/") || identical(lexeme, "%") || identical(lexeme , "~/") || identical(lexeme, "+") || identical(lexeme, "-") || identical(lexeme, "<<") || identical(lexeme, ">>") || identical(lexeme, ">=") || identical(lexeme , ">") || identical(lexeme, "<=") || identical(lexeme, "<") || identical(lexeme, "&") || identical(lexeme, "^") || identical(lexeme, "|");
2686 } 2684 }
2687 2685
2688 class TokenType_EOF extends TokenType { 2686 class TokenType_EOF extends TokenType {
2689 const TokenType_EOF(String name, int ordinal, TokenClass arg0, String arg1) : super.con2(name, ordinal, arg0, arg1); 2687 const TokenType_EOF(String name, int ordinal, TokenClass arg0, String arg1) : super.con2(name, ordinal, arg0, arg1);
2690 2688
2691 @override 2689 @override
2692 String toString() => "-eof-"; 2690 String toString() => "-eof-";
2693 } 2691 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | pkg/analyzer/lib/src/generated/sdk_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698