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 "platform/assert.h" | 10 #include "platform/assert.h" |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 ArgumentListNode* arguments, | 430 ArgumentListNode* arguments, |
431 bool resolve_getter, | 431 bool resolve_getter, |
432 bool* is_no_such_method); | 432 bool* is_no_such_method); |
433 AstNode* ParseSuperCall(const String& function_name); | 433 AstNode* ParseSuperCall(const String& function_name); |
434 AstNode* ParseSuperFieldAccess(const String& field_name, intptr_t field_pos); | 434 AstNode* ParseSuperFieldAccess(const String& field_name, intptr_t field_pos); |
435 AstNode* ParseSuperOperator(); | 435 AstNode* ParseSuperOperator(); |
436 AstNode* BuildUnarySuperOperator(Token::Kind op, PrimaryNode* super); | 436 AstNode* BuildUnarySuperOperator(Token::Kind op, PrimaryNode* super); |
437 | 437 |
438 static void SetupDefaultsForOptionalParams(const ParamList* params, | 438 static void SetupDefaultsForOptionalParams(const ParamList* params, |
439 Array& default_values); | 439 Array& default_values); |
440 AstNode* CreateImplicitClosureNode(const Function& func, | 440 ClosureNode* CreateImplicitClosureNode(const Function& func, |
441 intptr_t token_pos, | 441 intptr_t token_pos, |
442 AstNode* receiver); | 442 AstNode* receiver); |
443 static void AddFormalParamsToFunction(const ParamList* params, | 443 static void AddFormalParamsToFunction(const ParamList* params, |
444 const Function& func); | 444 const Function& func); |
445 void AddFormalParamsToScope(const ParamList* params, LocalScope* scope); | 445 void AddFormalParamsToScope(const ParamList* params, LocalScope* scope); |
446 | 446 |
447 SequenceNode* ParseConstructor(const Function& func, | 447 SequenceNode* ParseConstructor(const Function& func, |
448 Array& default_parameter_values); | 448 Array& default_parameter_values); |
449 SequenceNode* ParseFunc(const Function& func, | 449 SequenceNode* ParseFunc(const Function& func, |
450 Array& default_parameter_values); | 450 Array& default_parameter_values); |
451 | 451 |
452 void ParseNativeFunctionBlock(const ParamList* params, const Function& func); | 452 void ParseNativeFunctionBlock(const ParamList* params, const Function& func); |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 intptr_t last_used_try_index_; | 716 intptr_t last_used_try_index_; |
717 | 717 |
718 bool unregister_pending_function_; | 718 bool unregister_pending_function_; |
719 | 719 |
720 DISALLOW_COPY_AND_ASSIGN(Parser); | 720 DISALLOW_COPY_AND_ASSIGN(Parser); |
721 }; | 721 }; |
722 | 722 |
723 } // namespace dart | 723 } // namespace dart |
724 | 724 |
725 #endif // VM_PARSER_H_ | 725 #endif // VM_PARSER_H_ |
OLD | NEW |