| 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 | 392 |
| 393 void CheckRecursiveInvocation(); | 393 void CheckRecursiveInvocation(); |
| 394 | 394 |
| 395 const Instance& EvaluateConstExpr(intptr_t expr_pos, AstNode* expr); | 395 const Instance& EvaluateConstExpr(intptr_t expr_pos, AstNode* expr); |
| 396 StaticGetterNode* RunStaticFieldInitializer(const Field& field, | 396 StaticGetterNode* RunStaticFieldInitializer(const Field& field, |
| 397 intptr_t field_ref_pos); | 397 intptr_t field_ref_pos); |
| 398 RawObject* EvaluateConstConstructorCall(const Class& type_class, | 398 RawObject* EvaluateConstConstructorCall(const Class& type_class, |
| 399 const TypeArguments& type_arguments, | 399 const TypeArguments& type_arguments, |
| 400 const Function& constructor, | 400 const Function& constructor, |
| 401 ArgumentListNode* arguments); | 401 ArgumentListNode* arguments); |
| 402 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); | 402 LiteralNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); |
| 403 | 403 |
| 404 // Support for parsing of scripts. | 404 // Support for parsing of scripts. |
| 405 void ParseTopLevel(); | 405 void ParseTopLevel(); |
| 406 void ParseEnumDeclaration(const GrowableObjectArray& pending_classes, | 406 void ParseEnumDeclaration(const GrowableObjectArray& pending_classes, |
| 407 const Class& toplevel_class, | 407 const Class& toplevel_class, |
| 408 intptr_t metadata_pos); | 408 intptr_t metadata_pos); |
| 409 void ParseEnumDefinition(const Class& cls); | 409 void ParseEnumDefinition(const Class& cls); |
| 410 void ParseClassDeclaration(const GrowableObjectArray& pending_classes, | 410 void ParseClassDeclaration(const GrowableObjectArray& pending_classes, |
| 411 const Class& toplevel_class, | 411 const Class& toplevel_class, |
| 412 intptr_t metadata_pos); | 412 intptr_t metadata_pos); |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 | 888 |
| 889 // Indentation of parser trace. | 889 // Indentation of parser trace. |
| 890 intptr_t trace_indent_; | 890 intptr_t trace_indent_; |
| 891 | 891 |
| 892 DISALLOW_COPY_AND_ASSIGN(Parser); | 892 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 893 }; | 893 }; |
| 894 | 894 |
| 895 } // namespace dart | 895 } // namespace dart |
| 896 | 896 |
| 897 #endif // VM_PARSER_H_ | 897 #endif // VM_PARSER_H_ |
| OLD | NEW |