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

Side by Side Diff: runtime/vm/parser.h

Issue 538703002: Enable await in while and do-while. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 6 years, 3 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
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698