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 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 static const bool kNoCascades = false; | 681 static const bool kNoCascades = false; |
682 AstNode* ParseAwaitableExpr(bool require_compiletime_const, | 682 AstNode* ParseAwaitableExpr(bool require_compiletime_const, |
683 bool consume_cascades, | 683 bool consume_cascades, |
684 SequenceNode** await_preamble); | 684 SequenceNode** await_preamble); |
685 AstNode* ParseExpr(bool require_compiletime_const, bool consume_cascades); | 685 AstNode* ParseExpr(bool require_compiletime_const, bool consume_cascades); |
686 AstNode* ParseAwaitableExprList(); | 686 AstNode* ParseAwaitableExprList(); |
687 AstNode* ParseConditionalExpr(); | 687 AstNode* ParseConditionalExpr(); |
688 AstNode* ParseUnaryExpr(); | 688 AstNode* ParseUnaryExpr(); |
689 AstNode* ParsePostfixExpr(); | 689 AstNode* ParsePostfixExpr(); |
690 AstNode* ParseSelectors(AstNode* primary, bool is_cascade); | 690 AstNode* ParseSelectors(AstNode* primary, bool is_cascade); |
| 691 AstNode* ParseClosurization(AstNode* primary); |
691 AstNode* ParseCascades(AstNode* expr); | 692 AstNode* ParseCascades(AstNode* expr); |
692 AstNode* ParsePrimary(); | 693 AstNode* ParsePrimary(); |
693 AstNode* ParseStringLiteral(bool allow_interpolation); | 694 AstNode* ParseStringLiteral(bool allow_interpolation); |
694 String* ParseImportStringLiteral(); | 695 String* ParseImportStringLiteral(); |
695 AstNode* ParseCompoundLiteral(); | 696 AstNode* ParseCompoundLiteral(); |
696 AstNode* ParseSymbolLiteral(); | 697 AstNode* ParseSymbolLiteral(); |
697 AstNode* ParseListLiteral(intptr_t type_pos, | 698 AstNode* ParseListLiteral(intptr_t type_pos, |
698 bool is_const, | 699 bool is_const, |
699 const TypeArguments& type_arguments); | 700 const TypeArguments& type_arguments); |
700 AstNode* ParseMapLiteral(intptr_t type_pos, | 701 AstNode* ParseMapLiteral(intptr_t type_pos, |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 | 862 |
862 // Indentation of parser trace. | 863 // Indentation of parser trace. |
863 intptr_t trace_indent_; | 864 intptr_t trace_indent_; |
864 | 865 |
865 DISALLOW_COPY_AND_ASSIGN(Parser); | 866 DISALLOW_COPY_AND_ASSIGN(Parser); |
866 }; | 867 }; |
867 | 868 |
868 } // namespace dart | 869 } // namespace dart |
869 | 870 |
870 #endif // VM_PARSER_H_ | 871 #endif // VM_PARSER_H_ |
OLD | NEW |