| 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 #ifndef VM_PARSER_H_ | 5 #ifndef VM_PARSER_H_ |
| 6 #define VM_PARSER_H_ | 6 #define VM_PARSER_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 #include "platform/assert.h" | 10 #include "platform/assert.h" |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 bool IsForInStatement(); | 621 bool IsForInStatement(); |
| 622 bool IsTopLevelAccessor(); | 622 bool IsTopLevelAccessor(); |
| 623 | 623 |
| 624 AstNode* ParseBinaryExpr(int min_preced); | 624 AstNode* ParseBinaryExpr(int min_preced); |
| 625 LiteralNode* ParseConstExpr(); | 625 LiteralNode* ParseConstExpr(); |
| 626 static const bool kRequireConst = true; | 626 static const bool kRequireConst = true; |
| 627 static const bool kAllowConst = false; | 627 static const bool kAllowConst = false; |
| 628 static const bool kConsumeCascades = true; | 628 static const bool kConsumeCascades = true; |
| 629 static const bool kNoCascades = false; | 629 static const bool kNoCascades = false; |
| 630 AstNode* ParseAwaitableExpr(bool require_compiletime_const, | 630 AstNode* ParseAwaitableExpr(bool require_compiletime_const, |
| 631 bool consume_cascades); | 631 bool consume_cascades, |
| 632 SequenceNode** await_preamble); |
| 632 AstNode* ParseExpr(bool require_compiletime_const, bool consume_cascades); | 633 AstNode* ParseExpr(bool require_compiletime_const, bool consume_cascades); |
| 633 AstNode* ParseExprList(); | 634 AstNode* ParseExprList(); |
| 634 AstNode* ParseConditionalExpr(); | 635 AstNode* ParseConditionalExpr(); |
| 635 AstNode* ParseUnaryExpr(); | 636 AstNode* ParseUnaryExpr(); |
| 636 AstNode* ParsePostfixExpr(); | 637 AstNode* ParsePostfixExpr(); |
| 637 AstNode* ParseSelectors(AstNode* primary, bool is_cascade); | 638 AstNode* ParseSelectors(AstNode* primary, bool is_cascade); |
| 638 AstNode* ParseCascades(AstNode* expr); | 639 AstNode* ParseCascades(AstNode* expr); |
| 639 AstNode* ParsePrimary(); | 640 AstNode* ParsePrimary(); |
| 640 AstNode* ParseStringLiteral(bool allow_interpolation); | 641 AstNode* ParseStringLiteral(bool allow_interpolation); |
| 641 String* ParseImportStringLiteral(); | 642 String* ParseImportStringLiteral(); |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 bool unregister_pending_function_; | 811 bool unregister_pending_function_; |
| 811 | 812 |
| 812 LocalScope* async_temp_scope_; | 813 LocalScope* async_temp_scope_; |
| 813 | 814 |
| 814 DISALLOW_COPY_AND_ASSIGN(Parser); | 815 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 815 }; | 816 }; |
| 816 | 817 |
| 817 } // namespace dart | 818 } // namespace dart |
| 818 | 819 |
| 819 #endif // VM_PARSER_H_ | 820 #endif // VM_PARSER_H_ |
| OLD | NEW |