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

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

Issue 662603003: Implement await for statement (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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
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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 AstNode* LoadFieldIfUnresolved(AstNode* node); 561 AstNode* LoadFieldIfUnresolved(AstNode* node);
562 AstNode* LoadClosure(PrimaryNode* primary); 562 AstNode* LoadClosure(PrimaryNode* primary);
563 AstNode* CallGetter(intptr_t token_pos, AstNode* object, const String& name); 563 AstNode* CallGetter(intptr_t token_pos, AstNode* object, const String& name);
564 564
565 AstNode* ParseAssertStatement(); 565 AstNode* ParseAssertStatement();
566 AstNode* ParseJump(String* label_name); 566 AstNode* ParseJump(String* label_name);
567 AstNode* ParseIfStatement(String* label_name); 567 AstNode* ParseIfStatement(String* label_name);
568 AstNode* ParseWhileStatement(String* label_name); 568 AstNode* ParseWhileStatement(String* label_name);
569 AstNode* ParseDoWhileStatement(String* label_name); 569 AstNode* ParseDoWhileStatement(String* label_name);
570 AstNode* ParseForStatement(String* label_name); 570 AstNode* ParseForStatement(String* label_name);
571 AstNode* ParseAwaitForStatement(String* label_name);
571 AstNode* ParseForInStatement(intptr_t forin_pos, SourceLabel* label); 572 AstNode* ParseForInStatement(intptr_t forin_pos, SourceLabel* label);
572 RawClass* CheckCaseExpressions(const GrowableArray<LiteralNode*>& values); 573 RawClass* CheckCaseExpressions(const GrowableArray<LiteralNode*>& values);
573 CaseNode* ParseCaseClause(LocalVariable* switch_expr_value, 574 CaseNode* ParseCaseClause(LocalVariable* switch_expr_value,
574 GrowableArray<LiteralNode*>* case_expr_values, 575 GrowableArray<LiteralNode*>* case_expr_values,
575 SourceLabel* case_label); 576 SourceLabel* case_label);
576 AstNode* ParseSwitchStatement(String* label_name); 577 AstNode* ParseSwitchStatement(String* label_name);
577 578
578 // try/catch/finally parsing. 579 // try/catch/finally parsing.
579 void AddCatchParamsToScope(CatchParamDesc* exception_param, 580 void AddCatchParamsToScope(CatchParamDesc* exception_param,
580 CatchParamDesc* stack_trace_param, 581 CatchParamDesc* stack_trace_param,
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 bool unregister_pending_function_; 814 bool unregister_pending_function_;
814 815
815 LocalScope* async_temp_scope_; 816 LocalScope* async_temp_scope_;
816 817
817 DISALLOW_COPY_AND_ASSIGN(Parser); 818 DISALLOW_COPY_AND_ASSIGN(Parser);
818 }; 819 };
819 820
820 } // namespace dart 821 } // namespace dart
821 822
822 #endif // VM_PARSER_H_ 823 #endif // VM_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698