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

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

Issue 18612009: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 * @coverage dart.engine.parser 136 * @coverage dart.engine.parser
137 */ 137 */
138 class ScannerErrorCode implements Comparable<ScannerErrorCode>, ErrorCode { 138 class ScannerErrorCode implements Comparable<ScannerErrorCode>, ErrorCode {
139 static final ScannerErrorCode CHARACTER_EXPECTED_AFTER_SLASH = new ScannerErro rCode('CHARACTER_EXPECTED_AFTER_SLASH', 0, "Character expected after slash"); 139 static final ScannerErrorCode CHARACTER_EXPECTED_AFTER_SLASH = new ScannerErro rCode('CHARACTER_EXPECTED_AFTER_SLASH', 0, "Character expected after slash");
140 static final ScannerErrorCode ILLEGAL_CHARACTER = new ScannerErrorCode('ILLEGA L_CHARACTER', 1, "Illegal character %x"); 140 static final ScannerErrorCode ILLEGAL_CHARACTER = new ScannerErrorCode('ILLEGA L_CHARACTER', 1, "Illegal character %x");
141 static final ScannerErrorCode MISSING_DIGIT = new ScannerErrorCode('MISSING_DI GIT', 2, "Decimal digit expected"); 141 static final ScannerErrorCode MISSING_DIGIT = new ScannerErrorCode('MISSING_DI GIT', 2, "Decimal digit expected");
142 static final ScannerErrorCode MISSING_HEX_DIGIT = new ScannerErrorCode('MISSIN G_HEX_DIGIT', 3, "Hexidecimal digit expected"); 142 static final ScannerErrorCode MISSING_HEX_DIGIT = new ScannerErrorCode('MISSIN G_HEX_DIGIT', 3, "Hexidecimal digit expected");
143 static final ScannerErrorCode MISSING_QUOTE = new ScannerErrorCode('MISSING_QU OTE', 4, "Expected quote (' or \")"); 143 static final ScannerErrorCode MISSING_QUOTE = new ScannerErrorCode('MISSING_QU OTE', 4, "Expected quote (' or \")");
144 static final ScannerErrorCode UNTERMINATED_MULTI_LINE_COMMENT = new ScannerErr orCode('UNTERMINATED_MULTI_LINE_COMMENT', 5, "Unterminated multi-line comment"); 144 static final ScannerErrorCode UNTERMINATED_MULTI_LINE_COMMENT = new ScannerErr orCode('UNTERMINATED_MULTI_LINE_COMMENT', 5, "Unterminated multi-line comment");
145 static final ScannerErrorCode UNTERMINATED_STRING_LITERAL = new ScannerErrorCo de('UNTERMINATED_STRING_LITERAL', 6, "Unterminated string literal"); 145 static final ScannerErrorCode UNTERMINATED_STRING_LITERAL = new ScannerErrorCo de('UNTERMINATED_STRING_LITERAL', 6, "Unterminated string literal");
146 static final List<ScannerErrorCode> values = [CHARACTER_EXPECTED_AFTER_SLASH, ILLEGAL_CHARACTER, MISSING_DIGIT, MISSING_HEX_DIGIT, MISSING_QUOTE, UNTERMINATED _MULTI_LINE_COMMENT, UNTERMINATED_STRING_LITERAL]; 146 static final List<ScannerErrorCode> values = [
147 CHARACTER_EXPECTED_AFTER_SLASH,
148 ILLEGAL_CHARACTER,
149 MISSING_DIGIT,
150 MISSING_HEX_DIGIT,
151 MISSING_QUOTE,
152 UNTERMINATED_MULTI_LINE_COMMENT,
153 UNTERMINATED_STRING_LITERAL];
147 154
148 /// The name of this enum constant, as declared in the enum declaration. 155 /// The name of this enum constant, as declared in the enum declaration.
149 final String name; 156 final String name;
150 157
151 /// The position in the enum declaration. 158 /// The position in the enum declaration.
152 final int ordinal; 159 final int ordinal;
153 160
154 /** 161 /**
155 * The message template used to create the message to be displayed for this er ror. 162 * The message template used to create the message to be displayed for this er ror.
156 */ 163 */
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 static final Keyword FACTORY = new Keyword.con2('FACTORY', 38, "factory", true ); 251 static final Keyword FACTORY = new Keyword.con2('FACTORY', 38, "factory", true );
245 static final Keyword GET = new Keyword.con2('GET', 39, "get", true); 252 static final Keyword GET = new Keyword.con2('GET', 39, "get", true);
246 static final Keyword IMPLEMENTS = new Keyword.con2('IMPLEMENTS', 40, "implemen ts", true); 253 static final Keyword IMPLEMENTS = new Keyword.con2('IMPLEMENTS', 40, "implemen ts", true);
247 static final Keyword IMPORT = new Keyword.con2('IMPORT', 41, "import", true); 254 static final Keyword IMPORT = new Keyword.con2('IMPORT', 41, "import", true);
248 static final Keyword LIBRARY = new Keyword.con2('LIBRARY', 42, "library", true ); 255 static final Keyword LIBRARY = new Keyword.con2('LIBRARY', 42, "library", true );
249 static final Keyword OPERATOR = new Keyword.con2('OPERATOR', 43, "operator", t rue); 256 static final Keyword OPERATOR = new Keyword.con2('OPERATOR', 43, "operator", t rue);
250 static final Keyword PART = new Keyword.con2('PART', 44, "part", true); 257 static final Keyword PART = new Keyword.con2('PART', 44, "part", true);
251 static final Keyword SET = new Keyword.con2('SET', 45, "set", true); 258 static final Keyword SET = new Keyword.con2('SET', 45, "set", true);
252 static final Keyword STATIC = new Keyword.con2('STATIC', 46, "static", true); 259 static final Keyword STATIC = new Keyword.con2('STATIC', 46, "static", true);
253 static final Keyword TYPEDEF = new Keyword.con2('TYPEDEF', 47, "typedef", true ); 260 static final Keyword TYPEDEF = new Keyword.con2('TYPEDEF', 47, "typedef", true );
254 static final List<Keyword> values = [ASSERT, BREAK, CASE, CATCH, CLASS, CONST, CONTINUE, DEFAULT, DO, ELSE, ENUM, EXTENDS, FALSE, FINAL, FINALLY, FOR, IF, IN, IS, NEW, NULL, RETHROW, RETURN, SUPER, SWITCH, THIS, THROW, TRUE, TRY, VAR, VOI D, WHILE, WITH, ABSTRACT, AS, DYNAMIC, EXPORT, EXTERNAL, FACTORY, GET, IMPLEMENT S, IMPORT, LIBRARY, OPERATOR, PART, SET, STATIC, TYPEDEF]; 261 static final List<Keyword> values = [
262 ASSERT,
263 BREAK,
264 CASE,
265 CATCH,
266 CLASS,
267 CONST,
268 CONTINUE,
269 DEFAULT,
270 DO,
271 ELSE,
272 ENUM,
273 EXTENDS,
274 FALSE,
275 FINAL,
276 FINALLY,
277 FOR,
278 IF,
279 IN,
280 IS,
281 NEW,
282 NULL,
283 RETHROW,
284 RETURN,
285 SUPER,
286 SWITCH,
287 THIS,
288 THROW,
289 TRUE,
290 TRY,
291 VAR,
292 VOID,
293 WHILE,
294 WITH,
295 ABSTRACT,
296 AS,
297 DYNAMIC,
298 EXPORT,
299 EXTERNAL,
300 FACTORY,
301 GET,
302 IMPLEMENTS,
303 IMPORT,
304 LIBRARY,
305 OPERATOR,
306 PART,
307 SET,
308 STATIC,
309 TYPEDEF];
255 310
256 /// The name of this enum constant, as declared in the enum declaration. 311 /// The name of this enum constant, as declared in the enum declaration.
257 final String name; 312 final String name;
258 313
259 /// The position in the enum declaration. 314 /// The position in the enum declaration.
260 final int ordinal; 315 final int ordinal;
261 316
262 /** 317 /**
263 * The lexeme for the keyword. 318 * The lexeme for the keyword.
264 */ 319 */
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 1874
1820 /** 1875 /**
1821 * A value used to indicate that the token type is a unary operator. 1876 * A value used to indicate that the token type is a unary operator.
1822 */ 1877 */
1823 static final TokenClass UNARY_POSTFIX_OPERATOR = new TokenClass.con2('UNARY_PO STFIX_OPERATOR', 14, 15); 1878 static final TokenClass UNARY_POSTFIX_OPERATOR = new TokenClass.con2('UNARY_PO STFIX_OPERATOR', 14, 15);
1824 1879
1825 /** 1880 /**
1826 * A value used to indicate that the token type is a unary operator. 1881 * A value used to indicate that the token type is a unary operator.
1827 */ 1882 */
1828 static final TokenClass UNARY_PREFIX_OPERATOR = new TokenClass.con2('UNARY_PRE FIX_OPERATOR', 15, 14); 1883 static final TokenClass UNARY_PREFIX_OPERATOR = new TokenClass.con2('UNARY_PRE FIX_OPERATOR', 15, 14);
1829 static final List<TokenClass> values = [NO_CLASS, ADDITIVE_OPERATOR, ASSIGNMEN T_OPERATOR, BITWISE_AND_OPERATOR, BITWISE_OR_OPERATOR, BITWISE_XOR_OPERATOR, CAS CADE_OPERATOR, CONDITIONAL_OPERATOR, EQUALITY_OPERATOR, LOGICAL_AND_OPERATOR, LO GICAL_OR_OPERATOR, MULTIPLICATIVE_OPERATOR, RELATIONAL_OPERATOR, SHIFT_OPERATOR, UNARY_POSTFIX_OPERATOR, UNARY_PREFIX_OPERATOR]; 1884 static final List<TokenClass> values = [
1885 NO_CLASS,
1886 ADDITIVE_OPERATOR,
1887 ASSIGNMENT_OPERATOR,
1888 BITWISE_AND_OPERATOR,
1889 BITWISE_OR_OPERATOR,
1890 BITWISE_XOR_OPERATOR,
1891 CASCADE_OPERATOR,
1892 CONDITIONAL_OPERATOR,
1893 EQUALITY_OPERATOR,
1894 LOGICAL_AND_OPERATOR,
1895 LOGICAL_OR_OPERATOR,
1896 MULTIPLICATIVE_OPERATOR,
1897 RELATIONAL_OPERATOR,
1898 SHIFT_OPERATOR,
1899 UNARY_POSTFIX_OPERATOR,
1900 UNARY_PREFIX_OPERATOR];
1830 1901
1831 /// The name of this enum constant, as declared in the enum declaration. 1902 /// The name of this enum constant, as declared in the enum declaration.
1832 final String name; 1903 final String name;
1833 1904
1834 /// The position in the enum declaration. 1905 /// The position in the enum declaration.
1835 final int ordinal; 1906 final int ordinal;
1836 1907
1837 /** 1908 /**
1838 * The precedence of tokens of this class, or `0` if the such tokens do not re present an 1909 * The precedence of tokens of this class, or `0` if the such tokens do not re present an
1839 * operator. 1910 * operator.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1953 static final TokenType STAR = new TokenType.con2('STAR', 58, TokenClass.MULTIP LICATIVE_OPERATOR, "*"); 2024 static final TokenType STAR = new TokenType.con2('STAR', 58, TokenClass.MULTIP LICATIVE_OPERATOR, "*");
1954 static final TokenType STAR_EQ = new TokenType.con2('STAR_EQ', 59, TokenClass. ASSIGNMENT_OPERATOR, "*="); 2025 static final TokenType STAR_EQ = new TokenType.con2('STAR_EQ', 59, TokenClass. ASSIGNMENT_OPERATOR, "*=");
1955 static final TokenType STRING_INTERPOLATION_EXPRESSION = new TokenType.con2('S TRING_INTERPOLATION_EXPRESSION', 60, null, "\${"); 2026 static final TokenType STRING_INTERPOLATION_EXPRESSION = new TokenType.con2('S TRING_INTERPOLATION_EXPRESSION', 60, null, "\${");
1956 static final TokenType STRING_INTERPOLATION_IDENTIFIER = new TokenType.con2('S TRING_INTERPOLATION_IDENTIFIER', 61, null, "\$"); 2027 static final TokenType STRING_INTERPOLATION_IDENTIFIER = new TokenType.con2('S TRING_INTERPOLATION_IDENTIFIER', 61, null, "\$");
1957 static final TokenType TILDE = new TokenType.con2('TILDE', 62, TokenClass.UNAR Y_PREFIX_OPERATOR, "~"); 2028 static final TokenType TILDE = new TokenType.con2('TILDE', 62, TokenClass.UNAR Y_PREFIX_OPERATOR, "~");
1958 static final TokenType TILDE_SLASH = new TokenType.con2('TILDE_SLASH', 63, Tok enClass.MULTIPLICATIVE_OPERATOR, "~/"); 2029 static final TokenType TILDE_SLASH = new TokenType.con2('TILDE_SLASH', 63, Tok enClass.MULTIPLICATIVE_OPERATOR, "~/");
1959 static final TokenType TILDE_SLASH_EQ = new TokenType.con2('TILDE_SLASH_EQ', 6 4, TokenClass.ASSIGNMENT_OPERATOR, "~/="); 2030 static final TokenType TILDE_SLASH_EQ = new TokenType.con2('TILDE_SLASH_EQ', 6 4, TokenClass.ASSIGNMENT_OPERATOR, "~/=");
1960 static final TokenType BACKPING = new TokenType.con2('BACKPING', 65, null, "`" ); 2031 static final TokenType BACKPING = new TokenType.con2('BACKPING', 65, null, "`" );
1961 static final TokenType BACKSLASH = new TokenType.con2('BACKSLASH', 66, null, " \\"); 2032 static final TokenType BACKSLASH = new TokenType.con2('BACKSLASH', 66, null, " \\");
1962 static final TokenType PERIOD_PERIOD_PERIOD = new TokenType.con2('PERIOD_PERIO D_PERIOD', 67, null, "..."); 2033 static final TokenType PERIOD_PERIOD_PERIOD = new TokenType.con2('PERIOD_PERIO D_PERIOD', 67, null, "...");
1963 static final List<TokenType> values = [EOF, DOUBLE, HEXADECIMAL, IDENTIFIER, I NT, KEYWORD, MULTI_LINE_COMMENT, SCRIPT_TAG, SINGLE_LINE_COMMENT, STRING, AMPERS AND, AMPERSAND_AMPERSAND, AMPERSAND_EQ, AT, BANG, BANG_EQ, BAR, BAR_BAR, BAR_EQ, COLON, COMMA, CARET, CARET_EQ, CLOSE_CURLY_BRACKET, CLOSE_PAREN, CLOSE_SQUARE_B RACKET, EQ, EQ_EQ, FUNCTION, GT, GT_EQ, GT_GT, GT_GT_EQ, HASH, INDEX, INDEX_EQ, IS, LT, LT_EQ, LT_LT, LT_LT_EQ, MINUS, MINUS_EQ, MINUS_MINUS, OPEN_CURLY_BRACKET , OPEN_PAREN, OPEN_SQUARE_BRACKET, PERCENT, PERCENT_EQ, PERIOD, PERIOD_PERIOD, P LUS, PLUS_EQ, PLUS_PLUS, QUESTION, SEMICOLON, SLASH, SLASH_EQ, STAR, STAR_EQ, ST RING_INTERPOLATION_EXPRESSION, STRING_INTERPOLATION_IDENTIFIER, TILDE, TILDE_SLA SH, TILDE_SLASH_EQ, BACKPING, BACKSLASH, PERIOD_PERIOD_PERIOD]; 2034 static final List<TokenType> values = [
2035 EOF,
2036 DOUBLE,
2037 HEXADECIMAL,
2038 IDENTIFIER,
2039 INT,
2040 KEYWORD,
2041 MULTI_LINE_COMMENT,
2042 SCRIPT_TAG,
2043 SINGLE_LINE_COMMENT,
2044 STRING,
2045 AMPERSAND,
2046 AMPERSAND_AMPERSAND,
2047 AMPERSAND_EQ,
2048 AT,
2049 BANG,
2050 BANG_EQ,
2051 BAR,
2052 BAR_BAR,
2053 BAR_EQ,
2054 COLON,
2055 COMMA,
2056 CARET,
2057 CARET_EQ,
2058 CLOSE_CURLY_BRACKET,
2059 CLOSE_PAREN,
2060 CLOSE_SQUARE_BRACKET,
2061 EQ,
2062 EQ_EQ,
2063 FUNCTION,
2064 GT,
2065 GT_EQ,
2066 GT_GT,
2067 GT_GT_EQ,
2068 HASH,
2069 INDEX,
2070 INDEX_EQ,
2071 IS,
2072 LT,
2073 LT_EQ,
2074 LT_LT,
2075 LT_LT_EQ,
2076 MINUS,
2077 MINUS_EQ,
2078 MINUS_MINUS,
2079 OPEN_CURLY_BRACKET,
2080 OPEN_PAREN,
2081 OPEN_SQUARE_BRACKET,
2082 PERCENT,
2083 PERCENT_EQ,
2084 PERIOD,
2085 PERIOD_PERIOD,
2086 PLUS,
2087 PLUS_EQ,
2088 PLUS_PLUS,
2089 QUESTION,
2090 SEMICOLON,
2091 SLASH,
2092 SLASH_EQ,
2093 STAR,
2094 STAR_EQ,
2095 STRING_INTERPOLATION_EXPRESSION,
2096 STRING_INTERPOLATION_IDENTIFIER,
2097 TILDE,
2098 TILDE_SLASH,
2099 TILDE_SLASH_EQ,
2100 BACKPING,
2101 BACKSLASH,
2102 PERIOD_PERIOD_PERIOD];
1964 2103
1965 /// The name of this enum constant, as declared in the enum declaration. 2104 /// The name of this enum constant, as declared in the enum declaration.
1966 final String name; 2105 final String name;
1967 2106
1968 /// The position in the enum declaration. 2107 /// The position in the enum declaration.
1969 final int ordinal; 2108 final int ordinal;
1970 2109
1971 /** 2110 /**
1972 * The class of the token. 2111 * The class of the token.
1973 */ 2112 */
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
2090 */ 2229 */
2091 bool get isUserDefinableOperator => identical(_lexeme, "==") || identical(_lex eme, "~") || identical(_lexeme, "[]") || identical(_lexeme, "[]=") || identical( _lexeme, "*") || identical(_lexeme, "/") || identical(_lexeme, "%") || identical (_lexeme, "~/") || identical(_lexeme, "+") || identical(_lexeme, "-") || identic al(_lexeme, "<<") || identical(_lexeme, ">>") || identical(_lexeme, ">=") || ide ntical(_lexeme, ">") || identical(_lexeme, "<=") || identical(_lexeme, "<") || i dentical(_lexeme, "&") || identical(_lexeme, "^") || identical(_lexeme, "|"); 2230 bool get isUserDefinableOperator => identical(_lexeme, "==") || identical(_lex eme, "~") || identical(_lexeme, "[]") || identical(_lexeme, "[]=") || identical( _lexeme, "*") || identical(_lexeme, "/") || identical(_lexeme, "%") || identical (_lexeme, "~/") || identical(_lexeme, "+") || identical(_lexeme, "-") || identic al(_lexeme, "<<") || identical(_lexeme, ">>") || identical(_lexeme, ">=") || ide ntical(_lexeme, ">") || identical(_lexeme, "<=") || identical(_lexeme, "<") || i dentical(_lexeme, "&") || identical(_lexeme, "^") || identical(_lexeme, "|");
2092 int compareTo(TokenType other) => ordinal - other.ordinal; 2231 int compareTo(TokenType other) => ordinal - other.ordinal;
2093 int get hashCode => ordinal; 2232 int get hashCode => ordinal;
2094 String toString() => name; 2233 String toString() => name;
2095 } 2234 }
2096 class TokenType_EOF extends TokenType { 2235 class TokenType_EOF extends TokenType {
2097 TokenType_EOF(String name, int ordinal, TokenClass arg0, String arg1) : super. con2(name, ordinal, arg0, arg1); 2236 TokenType_EOF(String name, int ordinal, TokenClass arg0, String arg1) : super. con2(name, ordinal, arg0, arg1);
2098 String toString() => "-eof-"; 2237 String toString() => "-eof-";
2099 } 2238 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/resolver.dart ('k') | pkg/analyzer_experimental/test/generated/ast_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698