| OLD | NEW |
| 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 dart2js.parser; | 5 library dart2js.parser; |
| 6 | 6 |
| 7 import '../options.dart' show ParserOptions; | 7 import '../options.dart' show ParserOptions; |
| 8 import '../common.dart'; | 8 import '../common.dart'; |
| 9 import '../tokens/keyword.dart' show Keyword; | 9 import '../tokens/keyword.dart' show Keyword; |
| 10 import '../tokens/precedence.dart' show PrecedenceInfo; | 10 import '../tokens/precedence.dart' show PrecedenceInfo; |
| 11 import '../tokens/precedence_constants.dart' | 11 import '../tokens/precedence_constants.dart' |
| 12 show | 12 show |
| 13 AS_INFO, | 13 AS_INFO, |
| 14 ASSIGNMENT_PRECEDENCE, | 14 ASSIGNMENT_PRECEDENCE, |
| 15 CASCADE_PRECEDENCE, | 15 CASCADE_PRECEDENCE, |
| 16 EQUALITY_PRECEDENCE, | 16 EQUALITY_PRECEDENCE, |
| 17 GT_INFO, | 17 GT_INFO, |
| 18 GT_GT_INFO, | |
| 19 IS_INFO, | 18 IS_INFO, |
| 20 MINUS_MINUS_INFO, | 19 MINUS_MINUS_INFO, |
| 21 OPEN_PAREN_INFO, | 20 OPEN_PAREN_INFO, |
| 22 OPEN_SQUARE_BRACKET_INFO, | 21 OPEN_SQUARE_BRACKET_INFO, |
| 23 PERIOD_INFO, | 22 PERIOD_INFO, |
| 24 PLUS_PLUS_INFO, | 23 PLUS_PLUS_INFO, |
| 25 POSTFIX_PRECEDENCE, | 24 POSTFIX_PRECEDENCE, |
| 26 QUESTION_INFO, | 25 QUESTION_INFO, |
| 27 QUESTION_PERIOD_INFO, | 26 QUESTION_PERIOD_INFO, |
| 28 RELATIONAL_PRECEDENCE; | 27 RELATIONAL_PRECEDENCE; |
| (...skipping 2832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2861 } | 2860 } |
| 2862 listener.handleContinueStatement(hasTarget, continueKeyword, token); | 2861 listener.handleContinueStatement(hasTarget, continueKeyword, token); |
| 2863 return expectSemicolon(token); | 2862 return expectSemicolon(token); |
| 2864 } | 2863 } |
| 2865 | 2864 |
| 2866 Token parseEmptyStatement(Token token) { | 2865 Token parseEmptyStatement(Token token) { |
| 2867 listener.handleEmptyStatement(token); | 2866 listener.handleEmptyStatement(token); |
| 2868 return expectSemicolon(token); | 2867 return expectSemicolon(token); |
| 2869 } | 2868 } |
| 2870 } | 2869 } |
| OLD | NEW |