| 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 "vm/ast.h" | 10 #include "vm/ast.h" |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 AstNode* ParseIfStatement(String* label_name); | 402 AstNode* ParseIfStatement(String* label_name); |
| 403 AstNode* ParseWhileStatement(String* label_name); | 403 AstNode* ParseWhileStatement(String* label_name); |
| 404 AstNode* ParseDoWhileStatement(String* label_name); | 404 AstNode* ParseDoWhileStatement(String* label_name); |
| 405 AstNode* ParseForStatement(String* label_name); | 405 AstNode* ParseForStatement(String* label_name); |
| 406 AstNode* ParseForInStatement(intptr_t forin_pos, SourceLabel* label); | 406 AstNode* ParseForInStatement(intptr_t forin_pos, SourceLabel* label); |
| 407 CaseNode* ParseCaseClause(LocalVariable* switch_expr_value, | 407 CaseNode* ParseCaseClause(LocalVariable* switch_expr_value, |
| 408 SourceLabel* case_label); | 408 SourceLabel* case_label); |
| 409 AstNode* ParseSwitchStatement(String* label_name); | 409 AstNode* ParseSwitchStatement(String* label_name); |
| 410 | 410 |
| 411 // try/catch/finally parsing. | 411 // try/catch/finally parsing. |
| 412 void ParseCatchParameter(CatchParamDesc* catch_param); | |
| 413 void AddCatchParamsToScope(const CatchParamDesc& exception_param, | 412 void AddCatchParamsToScope(const CatchParamDesc& exception_param, |
| 414 const CatchParamDesc& stack_trace_param, | 413 const CatchParamDesc& stack_trace_param, |
| 415 LocalScope* scope); | 414 LocalScope* scope); |
| 416 // Parse finally block and create an AST for it. | 415 // Parse finally block and create an AST for it. |
| 417 SequenceNode* ParseFinallyBlock(); | 416 SequenceNode* ParseFinallyBlock(); |
| 418 // Adds try block to the list of try blocks seen so far. | 417 // Adds try block to the list of try blocks seen so far. |
| 419 void PushTryBlock(Block* try_block); | 418 void PushTryBlock(Block* try_block); |
| 420 // Pops the inner most try block from the list. | 419 // Pops the inner most try block from the list. |
| 421 TryBlocks* PopTryBlock(); | 420 TryBlocks* PopTryBlock(); |
| 422 // Add specified node to try block list so that it can be patched with | 421 // Add specified node to try block list so that it can be patched with |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 | 611 |
| 613 // Allocate temporary only once per function. | 612 // Allocate temporary only once per function. |
| 614 LocalVariable* expression_temp_; | 613 LocalVariable* expression_temp_; |
| 615 | 614 |
| 616 DISALLOW_COPY_AND_ASSIGN(Parser); | 615 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 617 }; | 616 }; |
| 618 | 617 |
| 619 } // namespace dart | 618 } // namespace dart |
| 620 | 619 |
| 621 #endif // VM_PARSER_H_ | 620 #endif // VM_PARSER_H_ |
| OLD | NEW |