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

Side by Side Diff: dart/lib/compiler/implementation/scanner/token.dart

Issue 10836351: Parse metadata, but ignore it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 final int EOF_TOKEN = 0; 5 final int EOF_TOKEN = 0;
6 6
7 final int KEYWORD_TOKEN = $k; 7 final int KEYWORD_TOKEN = $k;
8 final int IDENTIFIER_TOKEN = $a; 8 final int IDENTIFIER_TOKEN = $a;
9 final int DOUBLE_TOKEN = $d; 9 final int DOUBLE_TOKEN = $d;
10 final int INT_TOKEN = $i; 10 final int INT_TOKEN = $i;
(...skipping 11 matching lines...) Expand all
22 final int GT_TOKEN = $GT; 22 final int GT_TOKEN = $GT;
23 final int HASH_TOKEN = $HASH; 23 final int HASH_TOKEN = $HASH;
24 final int OPEN_CURLY_BRACKET_TOKEN = $OPEN_CURLY_BRACKET; 24 final int OPEN_CURLY_BRACKET_TOKEN = $OPEN_CURLY_BRACKET;
25 final int OPEN_SQUARE_BRACKET_TOKEN = $OPEN_SQUARE_BRACKET; 25 final int OPEN_SQUARE_BRACKET_TOKEN = $OPEN_SQUARE_BRACKET;
26 final int OPEN_PAREN_TOKEN = $OPEN_PAREN; 26 final int OPEN_PAREN_TOKEN = $OPEN_PAREN;
27 final int LT_TOKEN = $LT; 27 final int LT_TOKEN = $LT;
28 final int MINUS_TOKEN = $MINUS; 28 final int MINUS_TOKEN = $MINUS;
29 final int PERIOD_TOKEN = $PERIOD; 29 final int PERIOD_TOKEN = $PERIOD;
30 final int PLUS_TOKEN = $PLUS; 30 final int PLUS_TOKEN = $PLUS;
31 final int QUESTION_TOKEN = $QUESTION; 31 final int QUESTION_TOKEN = $QUESTION;
32 final int AT_TOKEN = $AT;
32 final int CLOSE_CURLY_BRACKET_TOKEN = $CLOSE_CURLY_BRACKET; 33 final int CLOSE_CURLY_BRACKET_TOKEN = $CLOSE_CURLY_BRACKET;
33 final int CLOSE_SQUARE_BRACKET_TOKEN = $CLOSE_SQUARE_BRACKET; 34 final int CLOSE_SQUARE_BRACKET_TOKEN = $CLOSE_SQUARE_BRACKET;
34 final int CLOSE_PAREN_TOKEN = $CLOSE_PAREN; 35 final int CLOSE_PAREN_TOKEN = $CLOSE_PAREN;
35 final int SEMICOLON_TOKEN = $SEMICOLON; 36 final int SEMICOLON_TOKEN = $SEMICOLON;
36 final int SLASH_TOKEN = $SLASH; 37 final int SLASH_TOKEN = $SLASH;
37 final int TILDE_TOKEN = $TILDE; 38 final int TILDE_TOKEN = $TILDE;
38 final int STAR_TOKEN = $STAR; 39 final int STAR_TOKEN = $STAR;
39 final int PERCENT_TOKEN = $PERCENT; 40 final int PERCENT_TOKEN = $PERCENT;
40 final int CARET_TOKEN = $CARET; 41 final int CARET_TOKEN = $CARET;
41 42
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 const PrecedenceInfo(const SourceString('=>'), 0, FUNCTION_TOKEN); 324 const PrecedenceInfo(const SourceString('=>'), 0, FUNCTION_TOKEN);
324 final PrecedenceInfo HASH_INFO = 325 final PrecedenceInfo HASH_INFO =
325 const PrecedenceInfo(const SourceString('#'), 0, HASH_TOKEN); 326 const PrecedenceInfo(const SourceString('#'), 0, HASH_TOKEN);
326 final PrecedenceInfo INDEX_EQ_INFO = 327 final PrecedenceInfo INDEX_EQ_INFO =
327 const PrecedenceInfo(const SourceString('[]='), 0, INDEX_EQ_TOKEN); 328 const PrecedenceInfo(const SourceString('[]='), 0, INDEX_EQ_TOKEN);
328 final PrecedenceInfo SEMICOLON_INFO = 329 final PrecedenceInfo SEMICOLON_INFO =
329 const PrecedenceInfo(const SourceString(';'), 0, SEMICOLON_TOKEN); 330 const PrecedenceInfo(const SourceString(';'), 0, SEMICOLON_TOKEN);
330 final PrecedenceInfo COMMA_INFO = 331 final PrecedenceInfo COMMA_INFO =
331 const PrecedenceInfo(const SourceString(','), 0, COMMA_TOKEN); 332 const PrecedenceInfo(const SourceString(','), 0, COMMA_TOKEN);
332 333
334 final PrecedenceInfo AT_INFO =
335 const PrecedenceInfo(const SourceString('@'), 0, AT_TOKEN);
336
333 // Assignment operators. 337 // Assignment operators.
334 final int ASSIGNMENT_PRECEDENCE = 1; 338 final int ASSIGNMENT_PRECEDENCE = 1;
335 final PrecedenceInfo AMPERSAND_EQ_INFO = 339 final PrecedenceInfo AMPERSAND_EQ_INFO =
336 const PrecedenceInfo(const SourceString('&='), 340 const PrecedenceInfo(const SourceString('&='),
337 ASSIGNMENT_PRECEDENCE, AMPERSAND_EQ_TOKEN); 341 ASSIGNMENT_PRECEDENCE, AMPERSAND_EQ_TOKEN);
338 final PrecedenceInfo BAR_EQ_INFO = 342 final PrecedenceInfo BAR_EQ_INFO =
339 const PrecedenceInfo(const SourceString('|='), 343 const PrecedenceInfo(const SourceString('|='),
340 ASSIGNMENT_PRECEDENCE, BAR_EQ_TOKEN); 344 ASSIGNMENT_PRECEDENCE, BAR_EQ_TOKEN);
341 final PrecedenceInfo CARET_EQ_INFO = 345 final PrecedenceInfo CARET_EQ_INFO =
342 const PrecedenceInfo(const SourceString('^='), 346 const PrecedenceInfo(const SourceString('^='),
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 495
492 final PrecedenceInfo HEXADECIMAL_INFO = 496 final PrecedenceInfo HEXADECIMAL_INFO =
493 const PrecedenceInfo(const SourceString('hexadecimal'), 0, HEXADECIMAL_TOKEN); 497 const PrecedenceInfo(const SourceString('hexadecimal'), 0, HEXADECIMAL_TOKEN);
494 498
495 final PrecedenceInfo COMMENT_INFO = 499 final PrecedenceInfo COMMENT_INFO =
496 const PrecedenceInfo(const SourceString('comment'), 0, COMMENT_TOKEN); 500 const PrecedenceInfo(const SourceString('comment'), 0, COMMENT_TOKEN);
497 501
498 // For reporting lexical errors. 502 // For reporting lexical errors.
499 final PrecedenceInfo ERROR_INFO = 503 final PrecedenceInfo ERROR_INFO =
500 const PrecedenceInfo(const SourceString('?'), 0, UNKNOWN_TOKEN); 504 const PrecedenceInfo(const SourceString('?'), 0, UNKNOWN_TOKEN);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698