| 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 | 208 |
| 209 // Support for parsing libraries. | 209 // Support for parsing libraries. |
| 210 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag, | 210 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag, |
| 211 intptr_t token_pos, | 211 intptr_t token_pos, |
| 212 const String& url, | 212 const String& url, |
| 213 const Array& import_map); | 213 const Array& import_map); |
| 214 void ParseLibraryDefinition(); | 214 void ParseLibraryDefinition(); |
| 215 void ParseLibraryName(); | 215 void ParseLibraryName(); |
| 216 void ParseLibraryImport(); | 216 void ParseLibraryImport(); |
| 217 void ParseLibraryInclude(); | 217 void ParseLibraryInclude(); |
| 218 void ParseLibraryResource(); |
| 218 | 219 |
| 219 enum TypeResolution { | 220 enum TypeResolution { |
| 220 kIgnore, // Parsed type is ignored and replaced by Dynamic. | 221 kIgnore, // Parsed type is ignored and replaced by Dynamic. |
| 221 kDoNotResolve, // Type resolution is postponed. | 222 kDoNotResolve, // Type resolution is postponed. |
| 222 kCanResolve, // Type resolution is optional. | 223 kCanResolve, // Type resolution is optional. |
| 223 kMustResolve // Type resolution is required. | 224 kMustResolve // Type resolution is required. |
| 224 }; | 225 }; |
| 225 void ResolveTypeFromClass(const Class& cls, | 226 void ResolveTypeFromClass(const Class& cls, |
| 226 TypeResolution type_resolution, | 227 TypeResolution type_resolution, |
| 227 AbstractType* type); | 228 AbstractType* type); |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 // code at all points in the try block where an exit from the block is | 459 // code at all points in the try block where an exit from the block is |
| 459 // done using 'return', 'break' or 'continue' statements. | 460 // done using 'return', 'break' or 'continue' statements. |
| 460 TryBlocks* try_blocks_list_; | 461 TryBlocks* try_blocks_list_; |
| 461 | 462 |
| 462 DISALLOW_COPY_AND_ASSIGN(Parser); | 463 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 463 }; | 464 }; |
| 464 | 465 |
| 465 } // namespace dart | 466 } // namespace dart |
| 466 | 467 |
| 467 #endif // VM_PARSER_H_ | 468 #endif // VM_PARSER_H_ |
| OLD | NEW |