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 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 static const bool kNoCascades = false; | 687 static const bool kNoCascades = false; |
688 AstNode* ParseAwaitableExpr(bool require_compiletime_const, | 688 AstNode* ParseAwaitableExpr(bool require_compiletime_const, |
689 bool consume_cascades, | 689 bool consume_cascades, |
690 SequenceNode** await_preamble); | 690 SequenceNode** await_preamble); |
691 AstNode* ParseExpr(bool require_compiletime_const, bool consume_cascades); | 691 AstNode* ParseExpr(bool require_compiletime_const, bool consume_cascades); |
692 AstNode* ParseAwaitableExprList(); | 692 AstNode* ParseAwaitableExprList(); |
693 AstNode* ParseConditionalExpr(); | 693 AstNode* ParseConditionalExpr(); |
694 AstNode* ParseUnaryExpr(); | 694 AstNode* ParseUnaryExpr(); |
695 AstNode* ParsePostfixExpr(); | 695 AstNode* ParsePostfixExpr(); |
696 AstNode* ParseSelectors(AstNode* primary, bool is_cascade); | 696 AstNode* ParseSelectors(AstNode* primary, bool is_cascade); |
| 697 AstNode* ParseClosurization(AstNode* primary); |
697 AstNode* ParseCascades(AstNode* expr); | 698 AstNode* ParseCascades(AstNode* expr); |
698 AstNode* ParsePrimary(); | 699 AstNode* ParsePrimary(); |
699 AstNode* ParseStringLiteral(bool allow_interpolation); | 700 AstNode* ParseStringLiteral(bool allow_interpolation); |
700 String* ParseImportStringLiteral(); | 701 String* ParseImportStringLiteral(); |
701 AstNode* ParseCompoundLiteral(); | 702 AstNode* ParseCompoundLiteral(); |
702 AstNode* ParseSymbolLiteral(); | 703 AstNode* ParseSymbolLiteral(); |
703 AstNode* ParseListLiteral(intptr_t type_pos, | 704 AstNode* ParseListLiteral(intptr_t type_pos, |
704 bool is_const, | 705 bool is_const, |
705 const TypeArguments& type_arguments); | 706 const TypeArguments& type_arguments); |
706 AstNode* ParseMapLiteral(intptr_t type_pos, | 707 AstNode* ParseMapLiteral(intptr_t type_pos, |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 | 871 |
871 // Indentation of parser trace. | 872 // Indentation of parser trace. |
872 intptr_t trace_indent_; | 873 intptr_t trace_indent_; |
873 | 874 |
874 DISALLOW_COPY_AND_ASSIGN(Parser); | 875 DISALLOW_COPY_AND_ASSIGN(Parser); |
875 }; | 876 }; |
876 | 877 |
877 } // namespace dart | 878 } // namespace dart |
878 | 879 |
879 #endif // VM_PARSER_H_ | 880 #endif // VM_PARSER_H_ |
OLD | NEW |