| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 AstNode* ParseStringLiteral(); | 340 AstNode* ParseStringLiteral(); |
| 341 AstNode* ParseCompoundLiteral(); | 341 AstNode* ParseCompoundLiteral(); |
| 342 AstNode* ParseArrayLiteral(intptr_t type_pos, | 342 AstNode* ParseArrayLiteral(intptr_t type_pos, |
| 343 bool is_const, | 343 bool is_const, |
| 344 const TypeArguments& type_arguments); | 344 const TypeArguments& type_arguments); |
| 345 AstNode* ParseMapLiteral(intptr_t type_pos, | 345 AstNode* ParseMapLiteral(intptr_t type_pos, |
| 346 bool is_const, | 346 bool is_const, |
| 347 const TypeArguments& type_arguments); | 347 const TypeArguments& type_arguments); |
| 348 AstNode* ParseNewOperator(); | 348 AstNode* ParseNewOperator(); |
| 349 | 349 |
| 350 const Array* BuildArgumentsDescriptor( | |
| 351 int num_args, | |
| 352 GrowableArray<const String*>& named_argument_names, | |
| 353 GrowableArray<const Smi*>& named_argument_positions); | |
| 354 // An implicit argument, if non-null, is prepended to the returned list. | 350 // An implicit argument, if non-null, is prepended to the returned list. |
| 355 ArgumentListNode* ParseActualParameters(ArgumentListNode* implicit_arguments, | 351 ArgumentListNode* ParseActualParameters(ArgumentListNode* implicit_arguments, |
| 356 bool require_const); | 352 bool require_const); |
| 357 AstNode* ParseStaticCall(const Class& cls, | 353 AstNode* ParseStaticCall(const Class& cls, |
| 358 const String& method_name, | 354 const String& method_name, |
| 359 intptr_t ident_pos); | 355 intptr_t ident_pos); |
| 360 AstNode* ParseInstanceCall(AstNode* receiver, const String& method_name); | 356 AstNode* ParseInstanceCall(AstNode* receiver, const String& method_name); |
| 361 AstNode* ParseClosureCall(AstNode* closure); | 357 AstNode* ParseClosureCall(AstNode* closure); |
| 362 AstNode* ParseInstanceFieldAccess(AstNode* receiver, | 358 AstNode* ParseInstanceFieldAccess(AstNode* receiver, |
| 363 const String& field_name); | 359 const String& field_name); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 TryBlocks* try_blocks_list_; | 443 TryBlocks* try_blocks_list_; |
| 448 | 444 |
| 449 char error_msg_[kErrorBuflen]; | 445 char error_msg_[kErrorBuflen]; |
| 450 | 446 |
| 451 DISALLOW_COPY_AND_ASSIGN(Parser); | 447 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 452 }; | 448 }; |
| 453 | 449 |
| 454 } // namespace dart | 450 } // namespace dart |
| 455 | 451 |
| 456 #endif // VM_PARSER_H_ | 452 #endif // VM_PARSER_H_ |
| OLD | NEW |