| 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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 void EnsureSavedCurrentContext(); | 622 void EnsureSavedCurrentContext(); |
| 623 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs); | 623 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs); |
| 624 AstNode* InsertClosureCallNodes(AstNode* condition); | 624 AstNode* InsertClosureCallNodes(AstNode* condition); |
| 625 | 625 |
| 626 ConstructorCallNode* CreateConstructorCallNode( | 626 ConstructorCallNode* CreateConstructorCallNode( |
| 627 intptr_t token_pos, | 627 intptr_t token_pos, |
| 628 const AbstractTypeArguments& type_arguments, | 628 const AbstractTypeArguments& type_arguments, |
| 629 const Function& constructor, | 629 const Function& constructor, |
| 630 ArgumentListNode* arguments); | 630 ArgumentListNode* arguments); |
| 631 | 631 |
| 632 RawInstance* TryCanonicalize(const Instance& instance); |
| 633 |
| 634 |
| 632 Isolate* isolate() const { return isolate_; } | 635 Isolate* isolate() const { return isolate_; } |
| 633 | 636 |
| 634 Isolate* isolate_; // Cached current isolate. | 637 Isolate* isolate_; // Cached current isolate. |
| 635 | 638 |
| 636 Script& script_; | 639 Script& script_; |
| 637 TokenStream::Iterator tokens_iterator_; | 640 TokenStream::Iterator tokens_iterator_; |
| 638 Token::Kind token_kind_; // Cached token kind for current token. | 641 Token::Kind token_kind_; // Cached token kind for current token. |
| 639 Block* current_block_; | 642 Block* current_block_; |
| 640 | 643 |
| 641 // is_top_level_ is true if parsing the "top level" of a compilation unit, | 644 // is_top_level_ is true if parsing the "top level" of a compilation unit, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 // code at all points in the try block where an exit from the block is | 677 // code at all points in the try block where an exit from the block is |
| 675 // done using 'return', 'break' or 'continue' statements. | 678 // done using 'return', 'break' or 'continue' statements. |
| 676 TryBlocks* try_blocks_list_; | 679 TryBlocks* try_blocks_list_; |
| 677 | 680 |
| 678 DISALLOW_COPY_AND_ASSIGN(Parser); | 681 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 679 }; | 682 }; |
| 680 | 683 |
| 681 } // namespace dart | 684 } // namespace dart |
| 682 | 685 |
| 683 #endif // VM_PARSER_H_ | 686 #endif // VM_PARSER_H_ |
| OLD | NEW |