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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 GrowableArray<FieldInitExpression>* initializers); | 223 GrowableArray<FieldInitExpression>* initializers); |
224 AstNode* ParseSuperInitializer(const Class& cls, LocalVariable* receiver); | 224 AstNode* ParseSuperInitializer(const Class& cls, LocalVariable* receiver); |
225 AstNode* ParseInitializer(const Class& cls, LocalVariable* receiver); | 225 AstNode* ParseInitializer(const Class& cls, LocalVariable* receiver); |
226 void ParseConstructorRedirection(const Class& cls, LocalVariable* receiver); | 226 void ParseConstructorRedirection(const Class& cls, LocalVariable* receiver); |
227 void ParseInitializers(const Class& cls, LocalVariable* receiver); | 227 void ParseInitializers(const Class& cls, LocalVariable* receiver); |
228 String& ParseNativeDeclaration(); | 228 String& ParseNativeDeclaration(); |
229 RawArray* ParseInterfaceList(); | 229 RawArray* ParseInterfaceList(); |
230 void AddInterfaces(intptr_t interfaces_pos, | 230 void AddInterfaces(intptr_t interfaces_pos, |
231 const Class& cls, | 231 const Class& cls, |
232 const Array& interfaces); | 232 const Array& interfaces); |
| 233 RawFunction* GetSuperFunction(intptr_t token_pos, const String& name); |
233 AstNode* ParseSuperCall(const String& function_name); | 234 AstNode* ParseSuperCall(const String& function_name); |
234 AstNode* ParseSuperFieldAccess(const String& field_name); | 235 AstNode* ParseSuperFieldAccess(const String& field_name); |
235 AstNode* ParseSuperOperator(); | 236 AstNode* ParseSuperOperator(); |
236 | 237 |
237 static void SetupDefaultsForOptionalParams(const ParamList* params, | 238 static void SetupDefaultsForOptionalParams(const ParamList* params, |
238 Array& default_values); | 239 Array& default_values); |
239 AstNode* CreateImplicitClosureNode(const Function& func, | 240 AstNode* CreateImplicitClosureNode(const Function& func, |
240 intptr_t token_pos, | 241 intptr_t token_pos, |
241 AstNode* receiver); | 242 AstNode* receiver); |
242 void AddFormalParamsToFunction(const ParamList* params, const Function& func); | 243 void AddFormalParamsToFunction(const ParamList* params, const Function& func); |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 TryBlocks* try_blocks_list_; | 436 TryBlocks* try_blocks_list_; |
436 | 437 |
437 char error_msg_[kErrorBuflen]; | 438 char error_msg_[kErrorBuflen]; |
438 | 439 |
439 DISALLOW_COPY_AND_ASSIGN(Parser); | 440 DISALLOW_COPY_AND_ASSIGN(Parser); |
440 }; | 441 }; |
441 | 442 |
442 } // namespace dart | 443 } // namespace dart |
443 | 444 |
444 #endif // VM_PARSER_H_ | 445 #endif // VM_PARSER_H_ |
OLD | NEW |