| 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 const AbstractTypeArguments& type_arguments, | 349 const AbstractTypeArguments& type_arguments, |
| 350 const Function& constructor, | 350 const Function& constructor, |
| 351 ArgumentListNode* arguments); | 351 ArgumentListNode* arguments); |
| 352 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); | 352 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); |
| 353 | 353 |
| 354 // Support for parsing of scripts. | 354 // Support for parsing of scripts. |
| 355 void ParseTopLevel(); | 355 void ParseTopLevel(); |
| 356 void ParseClassDeclaration(const GrowableObjectArray& pending_classes, | 356 void ParseClassDeclaration(const GrowableObjectArray& pending_classes, |
| 357 intptr_t metadata_pos); | 357 intptr_t metadata_pos); |
| 358 void ParseClassDefinition(const Class& cls); | 358 void ParseClassDefinition(const Class& cls); |
| 359 void ParseMixinTypedef(const GrowableObjectArray& pending_classes, | 359 void ParseMixinAppAlias(const GrowableObjectArray& pending_classes, |
| 360 intptr_t metadata_pos); | 360 intptr_t metadata_pos); |
| 361 void ParseTypedef(const GrowableObjectArray& pending_classes, | 361 void ParseTypedef(const GrowableObjectArray& pending_classes, |
| 362 intptr_t metadata_pos); | 362 intptr_t metadata_pos); |
| 363 void ParseTopLevelVariable(TopLevel* top_level, intptr_t metadata_pos); | 363 void ParseTopLevelVariable(TopLevel* top_level, intptr_t metadata_pos); |
| 364 void ParseTopLevelFunction(TopLevel* top_level, intptr_t metadata_pos); | 364 void ParseTopLevelFunction(TopLevel* top_level, intptr_t metadata_pos); |
| 365 void ParseTopLevelAccessor(TopLevel* top_level, intptr_t metadata_pos); | 365 void ParseTopLevelAccessor(TopLevel* top_level, intptr_t metadata_pos); |
| 366 RawArray* EvaluateMetadata(); | 366 RawArray* EvaluateMetadata(); |
| 367 | 367 |
| 368 // Support for parsing libraries. | 368 // Support for parsing libraries. |
| 369 RawObject* CallLibraryTagHandler(Dart_LibraryTag tag, | 369 RawObject* CallLibraryTagHandler(Dart_LibraryTag tag, |
| 370 intptr_t token_pos, | 370 intptr_t token_pos, |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 bool is_const); | 538 bool is_const); |
| 539 AstNode* ParseVariableDeclarationList(); | 539 AstNode* ParseVariableDeclarationList(); |
| 540 AstNode* ParseFunctionStatement(bool is_literal); | 540 AstNode* ParseFunctionStatement(bool is_literal); |
| 541 AstNode* ParseStatement(); | 541 AstNode* ParseStatement(); |
| 542 SequenceNode* ParseNestedStatement(bool parsing_loop_body, | 542 SequenceNode* ParseNestedStatement(bool parsing_loop_body, |
| 543 SourceLabel* label); | 543 SourceLabel* label); |
| 544 void ParseStatementSequence(); | 544 void ParseStatementSequence(); |
| 545 bool IsIdentifier(); | 545 bool IsIdentifier(); |
| 546 bool IsSimpleLiteral(const AbstractType& type, Instance* value); | 546 bool IsSimpleLiteral(const AbstractType& type, Instance* value); |
| 547 bool IsFunctionTypeAliasName(); | 547 bool IsFunctionTypeAliasName(); |
| 548 bool IsMixinTypedef(); | 548 bool IsMixinAppAlias(); |
| 549 bool TryParseTypeParameters(); | 549 bool TryParseTypeParameters(); |
| 550 bool TryParseOptionalType(); | 550 bool TryParseOptionalType(); |
| 551 bool TryParseReturnType(); | 551 bool TryParseReturnType(); |
| 552 bool IsVariableDeclaration(); | 552 bool IsVariableDeclaration(); |
| 553 bool IsFunctionDeclaration(); | 553 bool IsFunctionDeclaration(); |
| 554 bool IsFunctionLiteral(); | 554 bool IsFunctionLiteral(); |
| 555 bool IsForInStatement(); | 555 bool IsForInStatement(); |
| 556 bool IsTopLevelAccessor(); | 556 bool IsTopLevelAccessor(); |
| 557 | 557 |
| 558 AstNode* ParseBinaryExpr(int min_preced); | 558 AstNode* ParseBinaryExpr(int min_preced); |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 intptr_t last_used_try_index_; | 731 intptr_t last_used_try_index_; |
| 732 | 732 |
| 733 bool unregister_pending_function_; | 733 bool unregister_pending_function_; |
| 734 | 734 |
| 735 DISALLOW_COPY_AND_ASSIGN(Parser); | 735 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 736 }; | 736 }; |
| 737 | 737 |
| 738 } // namespace dart | 738 } // namespace dart |
| 739 | 739 |
| 740 #endif // VM_PARSER_H_ | 740 #endif // VM_PARSER_H_ |
| OLD | NEW |