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