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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 AstNode* RunStaticFieldInitializer(const Field& field, | 381 AstNode* RunStaticFieldInitializer(const Field& field, |
382 intptr_t field_ref_pos); | 382 intptr_t field_ref_pos); |
383 RawObject* EvaluateConstConstructorCall(const Class& type_class, | 383 RawObject* EvaluateConstConstructorCall(const Class& type_class, |
384 const TypeArguments& type_arguments, | 384 const TypeArguments& type_arguments, |
385 const Function& constructor, | 385 const Function& constructor, |
386 ArgumentListNode* arguments); | 386 ArgumentListNode* arguments); |
387 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); | 387 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); |
388 | 388 |
389 // Support for parsing of scripts. | 389 // Support for parsing of scripts. |
390 void ParseTopLevel(); | 390 void ParseTopLevel(); |
| 391 void ParseEnumDeclaration(const GrowableObjectArray& pending_classes, |
| 392 const Class& toplevel_class, |
| 393 intptr_t metadata_pos); |
| 394 void ParseEnumDefinition(const Class& cls); |
391 void ParseClassDeclaration(const GrowableObjectArray& pending_classes, | 395 void ParseClassDeclaration(const GrowableObjectArray& pending_classes, |
392 const Class& toplevel_class, | 396 const Class& toplevel_class, |
393 intptr_t metadata_pos); | 397 intptr_t metadata_pos); |
394 void ParseClassDefinition(const Class& cls); | 398 void ParseClassDefinition(const Class& cls); |
395 void ParseMixinAppAlias(const GrowableObjectArray& pending_classes, | 399 void ParseMixinAppAlias(const GrowableObjectArray& pending_classes, |
396 const Class& toplevel_class, | 400 const Class& toplevel_class, |
397 intptr_t metadata_pos); | 401 intptr_t metadata_pos); |
398 void ParseTypedef(const GrowableObjectArray& pending_classes, | 402 void ParseTypedef(const GrowableObjectArray& pending_classes, |
399 const Class& toplevel_class, | 403 const Class& toplevel_class, |
400 intptr_t metadata_pos); | 404 intptr_t metadata_pos); |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 bool unregister_pending_function_; | 805 bool unregister_pending_function_; |
802 | 806 |
803 LocalScope* async_temp_scope_; | 807 LocalScope* async_temp_scope_; |
804 | 808 |
805 DISALLOW_COPY_AND_ASSIGN(Parser); | 809 DISALLOW_COPY_AND_ASSIGN(Parser); |
806 }; | 810 }; |
807 | 811 |
808 } // namespace dart | 812 } // namespace dart |
809 | 813 |
810 #endif // VM_PARSER_H_ | 814 #endif // VM_PARSER_H_ |
OLD | NEW |