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

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

Issue 11051031: Add catchless catch clauses (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | 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 "vm/ast.h" 10 #include "vm/ast.h"
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698