| 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 "lib/invocation_mirror.h" | 10 #include "lib/invocation_mirror.h" |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 AstNode* LoadClosure(PrimaryNode* primary); | 491 AstNode* LoadClosure(PrimaryNode* primary); |
| 492 AstNode* CallGetter(intptr_t token_pos, AstNode* object, const String& name); | 492 AstNode* CallGetter(intptr_t token_pos, AstNode* object, const String& name); |
| 493 | 493 |
| 494 AstNode* ParseAssertStatement(); | 494 AstNode* ParseAssertStatement(); |
| 495 AstNode* ParseJump(String* label_name); | 495 AstNode* ParseJump(String* label_name); |
| 496 AstNode* ParseIfStatement(String* label_name); | 496 AstNode* ParseIfStatement(String* label_name); |
| 497 AstNode* ParseWhileStatement(String* label_name); | 497 AstNode* ParseWhileStatement(String* label_name); |
| 498 AstNode* ParseDoWhileStatement(String* label_name); | 498 AstNode* ParseDoWhileStatement(String* label_name); |
| 499 AstNode* ParseForStatement(String* label_name); | 499 AstNode* ParseForStatement(String* label_name); |
| 500 AstNode* ParseForInStatement(intptr_t forin_pos, SourceLabel* label); | 500 AstNode* ParseForInStatement(intptr_t forin_pos, SourceLabel* label); |
| 501 void CheckCaseExpressions(const GrowableArray<LiteralNode*>& values); | 501 RawClass* CheckCaseExpressions(const GrowableArray<LiteralNode*>& values); |
| 502 CaseNode* ParseCaseClause(LocalVariable* switch_expr_value, | 502 CaseNode* ParseCaseClause(LocalVariable* switch_expr_value, |
| 503 GrowableArray<LiteralNode*>* case_expr_values, | 503 GrowableArray<LiteralNode*>* case_expr_values, |
| 504 SourceLabel* case_label); | 504 SourceLabel* case_label); |
| 505 AstNode* ParseSwitchStatement(String* label_name); | 505 AstNode* ParseSwitchStatement(String* label_name); |
| 506 | 506 |
| 507 // try/catch/finally parsing. | 507 // try/catch/finally parsing. |
| 508 void AddCatchParamsToScope(const CatchParamDesc& exception_param, | 508 void AddCatchParamsToScope(const CatchParamDesc& exception_param, |
| 509 const CatchParamDesc& stack_trace_param, | 509 const CatchParamDesc& stack_trace_param, |
| 510 LocalScope* scope); | 510 LocalScope* scope); |
| 511 // Parse finally block and create an AST for it. | 511 // Parse finally block and create an AST for it. |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 intptr_t last_used_try_index_; | 720 intptr_t last_used_try_index_; |
| 721 | 721 |
| 722 bool unregister_pending_function_; | 722 bool unregister_pending_function_; |
| 723 | 723 |
| 724 DISALLOW_COPY_AND_ASSIGN(Parser); | 724 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 725 }; | 725 }; |
| 726 | 726 |
| 727 } // namespace dart | 727 } // namespace dart |
| 728 | 728 |
| 729 #endif // VM_PARSER_H_ | 729 #endif // VM_PARSER_H_ |
| OLD | NEW |