| 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 "vm/ast.h" | 10 #include "vm/ast.h" |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 void RunStaticFieldInitializer(const Field& field); | 208 void RunStaticFieldInitializer(const Field& field); |
| 209 RawObject* EvaluateConstConstructorCall( | 209 RawObject* EvaluateConstConstructorCall( |
| 210 const Class& type_class, | 210 const Class& type_class, |
| 211 const AbstractTypeArguments& type_arguments, | 211 const AbstractTypeArguments& type_arguments, |
| 212 const Function& constructor, | 212 const Function& constructor, |
| 213 ArgumentListNode* arguments); | 213 ArgumentListNode* arguments); |
| 214 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); | 214 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); |
| 215 | 215 |
| 216 // Support for parsing of scripts. | 216 // Support for parsing of scripts. |
| 217 void ParseTopLevel(); | 217 void ParseTopLevel(); |
| 218 void ParseClassDefinition(GrowableArray<const Class*>* classes); | 218 void ParseClassDefinition(const GrowableObjectArray& pending_classes); |
| 219 void ParseInterfaceDefinition(GrowableArray<const Class*>* classes); | 219 void ParseInterfaceDefinition(const GrowableObjectArray& pending_classes); |
| 220 void ParseFunctionTypeAlias(GrowableArray<const Class*>* classes); | 220 void ParseFunctionTypeAlias(const GrowableObjectArray& pending_classes); |
| 221 void ParseTopLevelVariable(TopLevel* top_level); | 221 void ParseTopLevelVariable(TopLevel* top_level); |
| 222 void ParseTopLevelFunction(TopLevel* top_level); | 222 void ParseTopLevelFunction(TopLevel* top_level); |
| 223 void ParseTopLevelAccessor(TopLevel* top_level); | 223 void ParseTopLevelAccessor(TopLevel* top_level); |
| 224 | 224 |
| 225 // Support for parsing libraries. | 225 // Support for parsing libraries. |
| 226 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag, | 226 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag, |
| 227 intptr_t token_pos, | 227 intptr_t token_pos, |
| 228 const String& url, | 228 const String& url, |
| 229 const Array& import_map); | 229 const Array& import_map); |
| 230 void ParseLibraryDefinition(); | 230 void ParseLibraryDefinition(); |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 // code at all points in the try block where an exit from the block is | 476 // code at all points in the try block where an exit from the block is |
| 477 // done using 'return', 'break' or 'continue' statements. | 477 // done using 'return', 'break' or 'continue' statements. |
| 478 TryBlocks* try_blocks_list_; | 478 TryBlocks* try_blocks_list_; |
| 479 | 479 |
| 480 DISALLOW_COPY_AND_ASSIGN(Parser); | 480 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 481 }; | 481 }; |
| 482 | 482 |
| 483 } // namespace dart | 483 } // namespace dart |
| 484 | 484 |
| 485 #endif // VM_PARSER_H_ | 485 #endif // VM_PARSER_H_ |
| OLD | NEW |