| 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 // Adds try block to the list of try blocks seen so far. | 384 // Adds try block to the list of try blocks seen so far. |
| 385 void PushTryBlock(Block* try_block); | 385 void PushTryBlock(Block* try_block); |
| 386 // Pops the inner most try block from the list. | 386 // Pops the inner most try block from the list. |
| 387 TryBlocks* PopTryBlock(); | 387 TryBlocks* PopTryBlock(); |
| 388 // Add specified node to try block list so that it can be patched with | 388 // Add specified node to try block list so that it can be patched with |
| 389 // inlined finally code if needed. | 389 // inlined finally code if needed. |
| 390 void AddNodeForFinallyInlining(AstNode* node); | 390 void AddNodeForFinallyInlining(AstNode* node); |
| 391 // Add the inlined finally block to the specified node. | 391 // Add the inlined finally block to the specified node. |
| 392 void AddFinallyBlockToNode(AstNode* node, InlinedFinallyNode* finally_node); | 392 void AddFinallyBlockToNode(AstNode* node, InlinedFinallyNode* finally_node); |
| 393 AstNode* ParseTryStatement(String* label_name); | 393 AstNode* ParseTryStatement(String* label_name); |
| 394 RawAbstractType* ParseFinalVarOrType( | 394 RawAbstractType* ParseConstFinalVarOrType( |
| 395 ClassFinalizer::FinalizationKind finalization); | 395 ClassFinalizer::FinalizationKind finalization); |
| 396 AstNode* ParseVariableDeclaration(const AbstractType& type, bool is_const); | 396 AstNode* ParseVariableDeclaration(const AbstractType& type, |
| 397 bool is_final, |
| 398 bool is_const); |
| 397 AstNode* ParseVariableDeclarationList(); | 399 AstNode* ParseVariableDeclarationList(); |
| 398 AstNode* ParseFunctionStatement(bool is_literal); | 400 AstNode* ParseFunctionStatement(bool is_literal); |
| 399 AstNode* ParseStatement(); | 401 AstNode* ParseStatement(); |
| 400 SequenceNode* ParseNestedStatement(bool parsing_loop_body, | 402 SequenceNode* ParseNestedStatement(bool parsing_loop_body, |
| 401 SourceLabel* label); | 403 SourceLabel* label); |
| 402 void ParseStatementSequence(); | 404 void ParseStatementSequence(); |
| 403 bool IsIdentifier(); | 405 bool IsIdentifier(); |
| 404 bool IsFunctionTypeAliasName(); | 406 bool IsFunctionTypeAliasName(); |
| 405 bool TryParseTypeParameter(); | 407 bool TryParseTypeParameter(); |
| 406 bool TryParseOptionalType(); | 408 bool TryParseOptionalType(); |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 | 554 |
| 553 // Allocate temporary only once per function. | 555 // Allocate temporary only once per function. |
| 554 LocalVariable* expression_temp_; | 556 LocalVariable* expression_temp_; |
| 555 | 557 |
| 556 DISALLOW_COPY_AND_ASSIGN(Parser); | 558 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 557 }; | 559 }; |
| 558 | 560 |
| 559 } // namespace dart | 561 } // namespace dart |
| 560 | 562 |
| 561 #endif // VM_PARSER_H_ | 563 #endif // VM_PARSER_H_ |
| OLD | NEW |