| 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 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 AstNode* MakeStaticCall(const String& cls_name, | 509 AstNode* MakeStaticCall(const String& cls_name, |
| 510 const String& func_name, | 510 const String& func_name, |
| 511 ArgumentListNode* arguments); | 511 ArgumentListNode* arguments); |
| 512 String& Interpolate(ArrayNode* values); | 512 String& Interpolate(ArrayNode* values); |
| 513 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); | 513 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); |
| 514 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type); | 514 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type); |
| 515 | 515 |
| 516 void CheckFunctionIsCallable(intptr_t token_pos, const Function& function); | 516 void CheckFunctionIsCallable(intptr_t token_pos, const Function& function); |
| 517 void CheckOperatorArity(const MemberDesc& member, Token::Kind operator_token); | 517 void CheckOperatorArity(const MemberDesc& member, Token::Kind operator_token); |
| 518 | 518 |
| 519 const LocalVariable& GetIncrementTempLocal(); | 519 const LocalVariable* GetIncrementTempLocal(); |
| 520 void EnsureExpressionTemp(); | 520 void EnsureExpressionTemp(); |
| 521 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs); | 521 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs); |
| 522 AstNode* InsertClosureCallNodes(AstNode* condition); | 522 AstNode* InsertClosureCallNodes(AstNode* condition); |
| 523 | 523 |
| 524 ConstructorCallNode* CreateConstructorCallNode( | 524 ConstructorCallNode* CreateConstructorCallNode( |
| 525 intptr_t token_pos, | 525 intptr_t token_pos, |
| 526 const AbstractTypeArguments& type_arguments, | 526 const AbstractTypeArguments& type_arguments, |
| 527 const Function& constructor, | 527 const Function& constructor, |
| 528 ArgumentListNode* arguments); | 528 ArgumentListNode* arguments); |
| 529 | 529 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 | 565 |
| 566 // Allocate temporary only once per function. | 566 // Allocate temporary only once per function. |
| 567 LocalVariable* expression_temp_; | 567 LocalVariable* expression_temp_; |
| 568 | 568 |
| 569 DISALLOW_COPY_AND_ASSIGN(Parser); | 569 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 570 }; | 570 }; |
| 571 | 571 |
| 572 } // namespace dart | 572 } // namespace dart |
| 573 | 573 |
| 574 #endif // VM_PARSER_H_ | 574 #endif // VM_PARSER_H_ |
| OLD | NEW |