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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 void ParseClassDefinition(const GrowableObjectArray& pending_classes); | 260 void ParseClassDefinition(const GrowableObjectArray& pending_classes); |
261 void ParseInterfaceDefinition(const GrowableObjectArray& pending_classes); | 261 void ParseInterfaceDefinition(const GrowableObjectArray& pending_classes); |
262 void ParseFunctionTypeAlias(const GrowableObjectArray& pending_classes); | 262 void ParseFunctionTypeAlias(const GrowableObjectArray& pending_classes); |
263 void ParseTopLevelVariable(TopLevel* top_level); | 263 void ParseTopLevelVariable(TopLevel* top_level); |
264 void ParseTopLevelFunction(TopLevel* top_level); | 264 void ParseTopLevelFunction(TopLevel* top_level); |
265 void ParseTopLevelAccessor(TopLevel* top_level); | 265 void ParseTopLevelAccessor(TopLevel* top_level); |
266 | 266 |
267 // Support for parsing libraries. | 267 // Support for parsing libraries. |
268 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag, | 268 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag, |
269 intptr_t token_pos, | 269 intptr_t token_pos, |
270 const String& url); | 270 const String& url, |
| 271 const Array& import_map); |
271 void ParseLibraryDefinition(); | 272 void ParseLibraryDefinition(); |
272 void ParseLibraryName(); | 273 void ParseLibraryName(); |
273 void ParseLibraryImport(); | 274 void ParseLibraryImport(); |
274 void ParseLibraryInclude(); | 275 void ParseLibraryInclude(); |
275 void ParseLibraryResource(); | 276 void ParseLibraryResource(); |
276 | 277 |
277 void ResolveTypeFromClass(const Class& cls, | 278 void ResolveTypeFromClass(const Class& cls, |
278 ClassFinalizer::FinalizationKind finalization, | 279 ClassFinalizer::FinalizationKind finalization, |
279 AbstractType* type); | 280 AbstractType* type); |
280 RawAbstractType* ParseType(ClassFinalizer::FinalizationKind finalization); | 281 RawAbstractType* ParseType(ClassFinalizer::FinalizationKind finalization); |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 | 529 |
529 // Allocate temporary only once per function. | 530 // Allocate temporary only once per function. |
530 LocalVariable* expression_temp_; | 531 LocalVariable* expression_temp_; |
531 | 532 |
532 DISALLOW_COPY_AND_ASSIGN(Parser); | 533 DISALLOW_COPY_AND_ASSIGN(Parser); |
533 }; | 534 }; |
534 | 535 |
535 } // namespace dart | 536 } // namespace dart |
536 | 537 |
537 #endif // VM_PARSER_H_ | 538 #endif // VM_PARSER_H_ |
OLD | NEW |