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

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

Issue 16611004: Improve java2dart code style - relax 'don't reference variable name in its initializer'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 library engine.scanner; 3 library engine.scanner;
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'java_core.dart'; 5 import 'java_core.dart';
6 import 'java_engine.dart'; 6 import 'java_engine.dart';
7 import 'source.dart'; 7 import 'source.dart';
8 import 'error.dart'; 8 import 'error.dart';
9 import 'instrumentation.dart'; 9 import 'instrumentation.dart';
10 /** 10 /**
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } else { 69 } else {
70 return new KeywordState(result, null); 70 return new KeywordState(result, null);
71 } 71 }
72 } 72 }
73 73
74 /** 74 /**
75 * Create the initial state in the state machine. 75 * Create the initial state in the state machine.
76 * @return the state that was created 76 * @return the state that was created
77 */ 77 */
78 static KeywordState createKeywordStateTable() { 78 static KeywordState createKeywordStateTable() {
79 List<Keyword> values2 = Keyword.values; 79 List<Keyword> values = Keyword.values;
80 List<String> strings = new List<String>(values2.length); 80 List<String> strings = new List<String>(values.length);
81 for (int i = 0; i < values2.length; i++) { 81 for (int i = 0; i < values.length; i++) {
82 strings[i] = values2[i].syntax; 82 strings[i] = values[i].syntax;
83 } 83 }
84 strings.sort(); 84 strings.sort();
85 return computeKeywordStateTable(0, strings, 0, strings.length); 85 return computeKeywordStateTable(0, strings, 0, strings.length);
86 } 86 }
87 87
88 /** 88 /**
89 * A table mapping characters to the states to which those characters will tra nsition. (The index 89 * A table mapping characters to the states to which those characters will tra nsition. (The index
90 * into the array is the offset from the character {@code 'a'} to the transiti oning character.) 90 * into the array is the offset from the character {@code 'a'} to the transiti oning character.)
91 */ 91 */
92 List<KeywordState> _table; 92 List<KeywordState> _table;
(...skipping 1943 matching lines...) Expand 10 before | Expand all | Expand 10 after
2036 */ 2036 */
2037 bool isUserDefinableOperator() => identical(_lexeme, "==") || identical(_lexem e, "~") || identical(_lexeme, "[]") || identical(_lexeme, "[]=") || identical(_l exeme, "*") || identical(_lexeme, "/") || identical(_lexeme, "%") || identical(_ lexeme, "~/") || identical(_lexeme, "+") || identical(_lexeme, "-") || identical (_lexeme, "<<") || identical(_lexeme, ">>") || identical(_lexeme, ">=") || ident ical(_lexeme, ">") || identical(_lexeme, "<=") || identical(_lexeme, "<") || ide ntical(_lexeme, "&") || identical(_lexeme, "^") || identical(_lexeme, "|"); 2037 bool isUserDefinableOperator() => identical(_lexeme, "==") || identical(_lexem e, "~") || identical(_lexeme, "[]") || identical(_lexeme, "[]=") || identical(_l exeme, "*") || identical(_lexeme, "/") || identical(_lexeme, "%") || identical(_ lexeme, "~/") || identical(_lexeme, "+") || identical(_lexeme, "-") || identical (_lexeme, "<<") || identical(_lexeme, ">>") || identical(_lexeme, ">=") || ident ical(_lexeme, ">") || identical(_lexeme, "<=") || identical(_lexeme, "<") || ide ntical(_lexeme, "&") || identical(_lexeme, "^") || identical(_lexeme, "|");
2038 int compareTo(TokenType other) => ordinal - other.ordinal; 2038 int compareTo(TokenType other) => ordinal - other.ordinal;
2039 int get hashCode => ordinal; 2039 int get hashCode => ordinal;
2040 String toString() => name; 2040 String toString() => name;
2041 } 2041 }
2042 class TokenType_EOF extends TokenType { 2042 class TokenType_EOF extends TokenType {
2043 TokenType_EOF(String name, int ordinal, TokenClass arg0, String arg1) : super. con2(name, ordinal, arg0, arg1); 2043 TokenType_EOF(String name, int ordinal, TokenClass arg0, String arg1) : super. con2(name, ordinal, arg0, arg1);
2044 String toString() => "-eof-"; 2044 String toString() => "-eof-";
2045 } 2045 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/resolver.dart ('k') | pkg/analyzer_experimental/lib/src/generated/sdk_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698