| 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 "lib/invocation_mirror.h" | 10 #include "lib/invocation_mirror.h" |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 const AbstractTypeArguments& type_arguments, | 330 const AbstractTypeArguments& type_arguments, |
| 331 const Function& constructor, | 331 const Function& constructor, |
| 332 ArgumentListNode* arguments); | 332 ArgumentListNode* arguments); |
| 333 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); | 333 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); |
| 334 | 334 |
| 335 // Support for parsing of scripts. | 335 // Support for parsing of scripts. |
| 336 void ParseTopLevel(); | 336 void ParseTopLevel(); |
| 337 void ParseClassDeclaration(const GrowableObjectArray& pending_classes, | 337 void ParseClassDeclaration(const GrowableObjectArray& pending_classes, |
| 338 intptr_t metadata_pos); | 338 intptr_t metadata_pos); |
| 339 void ParseClassDefinition(const Class& cls); | 339 void ParseClassDefinition(const Class& cls); |
| 340 void ParseMixinTypedef(const GrowableObjectArray& pending_classes); | 340 void ParseMixinTypedef(const GrowableObjectArray& pending_classes, |
| 341 void ParseTypedef(const GrowableObjectArray& pending_classes); | 341 intptr_t metadata_pos); |
| 342 void ParseTypedef(const GrowableObjectArray& pending_classes, |
| 343 intptr_t metadata_pos); |
| 342 void ParseTopLevelVariable(TopLevel* top_level, intptr_t metadata_pos); | 344 void ParseTopLevelVariable(TopLevel* top_level, intptr_t metadata_pos); |
| 343 void ParseTopLevelFunction(TopLevel* top_level, intptr_t metadata_pos); | 345 void ParseTopLevelFunction(TopLevel* top_level, intptr_t metadata_pos); |
| 344 void ParseTopLevelAccessor(TopLevel* top_level, intptr_t metadata_pos); | 346 void ParseTopLevelAccessor(TopLevel* top_level, intptr_t metadata_pos); |
| 345 RawArray* EvaluateMetadata(); | 347 RawArray* EvaluateMetadata(); |
| 346 | 348 |
| 347 // Support for parsing libraries. | 349 // Support for parsing libraries. |
| 348 RawObject* CallLibraryTagHandler(Dart_LibraryTag tag, | 350 RawObject* CallLibraryTagHandler(Dart_LibraryTag tag, |
| 349 intptr_t token_pos, | 351 intptr_t token_pos, |
| 350 const String& url); | 352 const String& url); |
| 351 void ParseIdentList(GrowableObjectArray* names); | 353 void ParseIdentList(GrowableObjectArray* names); |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 intptr_t last_used_try_index_; | 699 intptr_t last_used_try_index_; |
| 698 | 700 |
| 699 bool unregister_pending_function_; | 701 bool unregister_pending_function_; |
| 700 | 702 |
| 701 DISALLOW_COPY_AND_ASSIGN(Parser); | 703 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 702 }; | 704 }; |
| 703 | 705 |
| 704 } // namespace dart | 706 } // namespace dart |
| 705 | 707 |
| 706 #endif // VM_PARSER_H_ | 708 #endif // VM_PARSER_H_ |
| OLD | NEW |