| 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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 AstNode* node, | 566 AstNode* node, |
| 567 LocalScope* scope); | 567 LocalScope* scope); |
| 568 | 568 |
| 569 SequenceNode* MakeImplicitConstructor(const Function& func); | 569 SequenceNode* MakeImplicitConstructor(const Function& func); |
| 570 AstNode* MakeStaticCall(const String& cls_name, | 570 AstNode* MakeStaticCall(const String& cls_name, |
| 571 const String& func_name, | 571 const String& func_name, |
| 572 ArgumentListNode* arguments); | 572 ArgumentListNode* arguments); |
| 573 String& Interpolate(ArrayNode* values); | 573 String& Interpolate(ArrayNode* values); |
| 574 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); | 574 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); |
| 575 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type); | 575 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type); |
| 576 AstNode* ThrowNoSuchMethodError(intptr_t call_pos, const String& name); | 576 AstNode* ThrowNoSuchMethodError(intptr_t call_pos, |
| 577 const Class& cls, |
| 578 const String& function_name); |
| 577 | 579 |
| 578 void CheckOperatorArity(const MemberDesc& member); | 580 void CheckOperatorArity(const MemberDesc& member); |
| 579 | 581 |
| 580 const LocalVariable* GetIncrementTempLocal(); | 582 const LocalVariable* GetIncrementTempLocal(); |
| 581 void EnsureExpressionTemp(); | 583 void EnsureExpressionTemp(); |
| 582 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs); | 584 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs); |
| 583 AstNode* InsertClosureCallNodes(AstNode* condition); | 585 AstNode* InsertClosureCallNodes(AstNode* condition); |
| 584 | 586 |
| 585 ConstructorCallNode* CreateConstructorCallNode( | 587 ConstructorCallNode* CreateConstructorCallNode( |
| 586 intptr_t token_pos, | 588 intptr_t token_pos, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 | 629 |
| 628 // Allocate temporary only once per function. | 630 // Allocate temporary only once per function. |
| 629 LocalVariable* expression_temp_; | 631 LocalVariable* expression_temp_; |
| 630 | 632 |
| 631 DISALLOW_COPY_AND_ASSIGN(Parser); | 633 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 632 }; | 634 }; |
| 633 | 635 |
| 634 } // namespace dart | 636 } // namespace dart |
| 635 | 637 |
| 636 #endif // VM_PARSER_H_ | 638 #endif // VM_PARSER_H_ |
| OLD | NEW |