| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 void ParseClassMemberDefinition(ClassDesc* members); | 301 void ParseClassMemberDefinition(ClassDesc* members); |
| 302 void ParseFormalParameter(bool allow_explicit_default_value, | 302 void ParseFormalParameter(bool allow_explicit_default_value, |
| 303 ParamList* params); | 303 ParamList* params); |
| 304 void ParseFormalParameters(bool allow_explicit_default_values, | 304 void ParseFormalParameters(bool allow_explicit_default_values, |
| 305 ParamList* params); | 305 ParamList* params); |
| 306 void ParseFormalParameterList(bool allow_explicit_default_values, | 306 void ParseFormalParameterList(bool allow_explicit_default_values, |
| 307 ParamList* params); | 307 ParamList* params); |
| 308 void CheckConstFieldsInitialized(const Class& cls); | 308 void CheckConstFieldsInitialized(const Class& cls); |
| 309 void CheckConstructors(ClassDesc* members); | 309 void CheckConstructors(ClassDesc* members); |
| 310 void ParseInitializedInstanceFields(const Class& cls, | 310 void ParseInitializedInstanceFields(const Class& cls, |
| 311 GrowableArray<FieldInitExpression>* initializers); | 311 GrowableArray<FieldInitExpression>* initializers, |
| 312 GrowableArray<Field*>* initialized_fields); |
| 313 void CheckDuplicateFieldInit(intptr_t init_pos, |
| 314 GrowableArray<Field*>* initialized_fields, |
| 315 Field* field); |
| 312 void GenerateSuperConstructorCall(const Class& cls, | 316 void GenerateSuperConstructorCall(const Class& cls, |
| 313 LocalVariable* receiver); | 317 LocalVariable* receiver); |
| 314 AstNode* ParseSuperInitializer(const Class& cls, LocalVariable* receiver); | 318 AstNode* ParseSuperInitializer(const Class& cls, LocalVariable* receiver); |
| 315 AstNode* ParseInitializer(const Class& cls, LocalVariable* receiver); | 319 AstNode* ParseInitializer(const Class& cls, |
| 320 LocalVariable* receiver, |
| 321 GrowableArray<Field*>* initialized_fields); |
| 316 void ParseConstructorRedirection(const Class& cls, LocalVariable* receiver); | 322 void ParseConstructorRedirection(const Class& cls, LocalVariable* receiver); |
| 317 void ParseInitializers(const Class& cls, LocalVariable* receiver); | 323 void ParseInitializers(const Class& cls, |
| 324 LocalVariable* receiver, |
| 325 GrowableArray<Field*>* initialized_fields); |
| 318 String& ParseNativeDeclaration(); | 326 String& ParseNativeDeclaration(); |
| 319 // TODO(srdjan): Return TypeArguments instead of Array? | 327 // TODO(srdjan): Return TypeArguments instead of Array? |
| 320 RawArray* ParseInterfaceList(); | 328 RawArray* ParseInterfaceList(); |
| 321 void AddInterfaces(intptr_t interfaces_pos, | 329 void AddInterfaces(intptr_t interfaces_pos, |
| 322 const Class& cls, | 330 const Class& cls, |
| 323 const Array& interfaces); | 331 const Array& interfaces); |
| 324 ArgumentListNode* BuildNoSuchMethodArguments( | 332 ArgumentListNode* BuildNoSuchMethodArguments( |
| 325 const String& function_name, const ArgumentListNode& function_args); | 333 const String& function_name, const ArgumentListNode& function_args); |
| 326 RawFunction* GetSuperFunction(intptr_t token_pos, | 334 RawFunction* GetSuperFunction(intptr_t token_pos, |
| 327 const String& name, | 335 const String& name, |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 | 563 |
| 556 // Allocate temporary only once per function. | 564 // Allocate temporary only once per function. |
| 557 LocalVariable* expression_temp_; | 565 LocalVariable* expression_temp_; |
| 558 | 566 |
| 559 DISALLOW_COPY_AND_ASSIGN(Parser); | 567 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 560 }; | 568 }; |
| 561 | 569 |
| 562 } // namespace dart | 570 } // namespace dart |
| 563 | 571 |
| 564 #endif // VM_PARSER_H_ | 572 #endif // VM_PARSER_H_ |
| OLD | NEW |