| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 void ParseTopLevelVariable(TopLevel* top_level); | 286 void ParseTopLevelVariable(TopLevel* top_level); |
| 287 void ParseTopLevelFunction(TopLevel* top_level); | 287 void ParseTopLevelFunction(TopLevel* top_level); |
| 288 void ParseTopLevelAccessor(TopLevel* top_level); | 288 void ParseTopLevelAccessor(TopLevel* top_level); |
| 289 | 289 |
| 290 // Support for parsing libraries. | 290 // Support for parsing libraries. |
| 291 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag, | 291 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag, |
| 292 intptr_t token_pos, | 292 intptr_t token_pos, |
| 293 const String& url); | 293 const String& url); |
| 294 void ParseLibraryDefinition(); | 294 void ParseLibraryDefinition(); |
| 295 void ParseLibraryName(); | 295 void ParseLibraryName(); |
| 296 void ParseLibraryImport(); | 296 void ParseLibraryImportExport(); |
| 297 void ParseLibraryInclude(); | 297 void ParseLibraryPart(); |
| 298 void ParseLibraryResource(); | 298 void ParseLibraryNameObsoleteSyntax(); |
| 299 void ParseLibraryImportObsoleteSyntax(); |
| 300 void ParseLibraryIncludeObsoleteSyntax(); |
| 301 void ParseLibraryResourceObsoleteSyntax(); |
| 299 | 302 |
| 300 void ResolveTypeFromClass(const Class& cls, | 303 void ResolveTypeFromClass(const Class& cls, |
| 301 ClassFinalizer::FinalizationKind finalization, | 304 ClassFinalizer::FinalizationKind finalization, |
| 302 AbstractType* type); | 305 AbstractType* type); |
| 303 RawAbstractType* ParseType(ClassFinalizer::FinalizationKind finalization); | 306 RawAbstractType* ParseType(ClassFinalizer::FinalizationKind finalization); |
| 304 void ParseTypeParameters(const Class& cls); | 307 void ParseTypeParameters(const Class& cls); |
| 305 RawAbstractTypeArguments* ParseTypeArguments( | 308 RawAbstractTypeArguments* ParseTypeArguments( |
| 306 Error* malformed_error, | 309 Error* malformed_error, |
| 307 ClassFinalizer::FinalizationKind finalization); | 310 ClassFinalizer::FinalizationKind finalization); |
| 308 void ParseQualIdent(QualIdent* qual_ident); | 311 void ParseQualIdent(QualIdent* qual_ident); |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 | 607 |
| 605 // Allocate temporary only once per function. | 608 // Allocate temporary only once per function. |
| 606 LocalVariable* expression_temp_; | 609 LocalVariable* expression_temp_; |
| 607 | 610 |
| 608 DISALLOW_COPY_AND_ASSIGN(Parser); | 611 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 609 }; | 612 }; |
| 610 | 613 |
| 611 } // namespace dart | 614 } // namespace dart |
| 612 | 615 |
| 613 #endif // VM_PARSER_H_ | 616 #endif // VM_PARSER_H_ |
| OLD | NEW |