| 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 ArgumentListNode* arguments); | 478 ArgumentListNode* arguments); |
| 479 String& Interpolate(ArrayNode* values); | 479 String& Interpolate(ArrayNode* values); |
| 480 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); | 480 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); |
| 481 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type); | 481 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type); |
| 482 | 482 |
| 483 void CheckFunctionIsCallable(intptr_t token_index, const Function& function); | 483 void CheckFunctionIsCallable(intptr_t token_index, const Function& function); |
| 484 void CheckOperatorArity(const MemberDesc& member, Token::Kind operator_token); | 484 void CheckOperatorArity(const MemberDesc& member, Token::Kind operator_token); |
| 485 | 485 |
| 486 const LocalVariable& GetIncrementTempLocal(); | 486 const LocalVariable& GetIncrementTempLocal(); |
| 487 void EnsureExpressionTemp(); | 487 void EnsureExpressionTemp(); |
| 488 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs); |
| 488 | 489 |
| 489 ConstructorCallNode* CreateConstructorCallNode( | 490 ConstructorCallNode* CreateConstructorCallNode( |
| 490 intptr_t token_index, | 491 intptr_t token_index, |
| 491 const AbstractTypeArguments& type_arguments, | 492 const AbstractTypeArguments& type_arguments, |
| 492 const Function& constructor, | 493 const Function& constructor, |
| 493 ArgumentListNode* arguments); | 494 ArgumentListNode* arguments); |
| 494 | 495 |
| 495 | 496 |
| 496 const Script& script_; | 497 const Script& script_; |
| 497 const TokenStream& tokens_; | 498 const TokenStream& tokens_; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 528 | 529 |
| 529 // Allocate temporary only once per function. | 530 // Allocate temporary only once per function. |
| 530 LocalVariable* expression_temp_; | 531 LocalVariable* expression_temp_; |
| 531 | 532 |
| 532 DISALLOW_COPY_AND_ASSIGN(Parser); | 533 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 533 }; | 534 }; |
| 534 | 535 |
| 535 } // namespace dart | 536 } // namespace dart |
| 536 | 537 |
| 537 #endif // VM_PARSER_H_ | 538 #endif // VM_PARSER_H_ |
| OLD | NEW |