| 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 AstNode* ParseSuperInitializer(const Class& cls, LocalVariable* receiver); | 301 AstNode* ParseSuperInitializer(const Class& cls, LocalVariable* receiver); |
| 302 AstNode* ParseInitializer(const Class& cls, LocalVariable* receiver); | 302 AstNode* ParseInitializer(const Class& cls, LocalVariable* receiver); |
| 303 void ParseConstructorRedirection(const Class& cls, LocalVariable* receiver); | 303 void ParseConstructorRedirection(const Class& cls, LocalVariable* receiver); |
| 304 void ParseInitializers(const Class& cls, LocalVariable* receiver); | 304 void ParseInitializers(const Class& cls, LocalVariable* receiver); |
| 305 String& ParseNativeDeclaration(); | 305 String& ParseNativeDeclaration(); |
| 306 // TODO(srdjan): Return TypeArguments instead of Array? | 306 // TODO(srdjan): Return TypeArguments instead of Array? |
| 307 RawArray* ParseInterfaceList(); | 307 RawArray* ParseInterfaceList(); |
| 308 void AddInterfaces(intptr_t interfaces_pos, | 308 void AddInterfaces(intptr_t interfaces_pos, |
| 309 const Class& cls, | 309 const Class& cls, |
| 310 const Array& interfaces); | 310 const Array& interfaces); |
| 311 RawFunction* GetSuperFunction(intptr_t token_pos, const String& name); | 311 ArgumentListNode* BuildNoSuchMethodArguments(const String& function_name, |
| 312 ArgumentListNode* function_args); |
| 313 RawFunction* GetSuperFunction(intptr_t token_pos, |
| 314 const String& name, |
| 315 bool* is_no_such_method); |
| 312 AstNode* ParseSuperCall(const String& function_name); | 316 AstNode* ParseSuperCall(const String& function_name); |
| 313 AstNode* ParseSuperFieldAccess(const String& field_name); | 317 AstNode* ParseSuperFieldAccess(const String& field_name); |
| 314 AstNode* ParseSuperOperator(); | 318 AstNode* ParseSuperOperator(); |
| 315 | 319 |
| 316 static void SetupDefaultsForOptionalParams(const ParamList* params, | 320 static void SetupDefaultsForOptionalParams(const ParamList* params, |
| 317 Array& default_values); | 321 Array& default_values); |
| 318 AstNode* CreateImplicitClosureNode(const Function& func, | 322 AstNode* CreateImplicitClosureNode(const Function& func, |
| 319 intptr_t token_pos, | 323 intptr_t token_pos, |
| 320 AstNode* receiver); | 324 AstNode* receiver); |
| 321 void AddFormalParamsToFunction(const ParamList* params, const Function& func); | 325 void AddFormalParamsToFunction(const ParamList* params, const Function& func); |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 | 534 |
| 531 // Allocate temporary only once per function. | 535 // Allocate temporary only once per function. |
| 532 LocalVariable* expression_temp_; | 536 LocalVariable* expression_temp_; |
| 533 | 537 |
| 534 DISALLOW_COPY_AND_ASSIGN(Parser); | 538 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 535 }; | 539 }; |
| 536 | 540 |
| 537 } // namespace dart | 541 } // namespace dart |
| 538 | 542 |
| 539 #endif // VM_PARSER_H_ | 543 #endif // VM_PARSER_H_ |
| OLD | NEW |