| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // Support for parsing of scripts. | 181 // Support for parsing of scripts. |
| 182 void ParseTopLevel(); | 182 void ParseTopLevel(); |
| 183 void ParseClassDefinition(GrowableArray<const Class*>* classes); | 183 void ParseClassDefinition(GrowableArray<const Class*>* classes); |
| 184 void ParseInterfaceDefinition(GrowableArray<const Class*>* classes); | 184 void ParseInterfaceDefinition(GrowableArray<const Class*>* classes); |
| 185 void ParseFunctionTypeAlias(GrowableArray<const Class*>* classes); | 185 void ParseFunctionTypeAlias(GrowableArray<const Class*>* classes); |
| 186 void ParseTopLevelVariable(TopLevel* top_level); | 186 void ParseTopLevelVariable(TopLevel* top_level); |
| 187 void ParseTopLevelFunction(TopLevel* top_level); | 187 void ParseTopLevelFunction(TopLevel* top_level); |
| 188 void ParseTopLevelAccessor(TopLevel* top_level); | 188 void ParseTopLevelAccessor(TopLevel* top_level); |
| 189 | 189 |
| 190 // Support for parsing libraries. | 190 // Support for parsing libraries. |
| 191 Dart_Result CallLibraryTagHandler(Dart_LibraryTag tag, | 191 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag, |
| 192 intptr_t token_pos, | 192 intptr_t token_pos, |
| 193 const String& url); | 193 const String& url); |
| 194 void ParseLibraryDefinition(); | 194 void ParseLibraryDefinition(); |
| 195 void ParseLibraryName(); | 195 void ParseLibraryName(); |
| 196 void ParseLibraryImport(); | 196 void ParseLibraryImport(); |
| 197 void ParseLibraryInclude(); | 197 void ParseLibraryInclude(); |
| 198 | 198 |
| 199 bool ResolveTypeFromClass(intptr_t type_pos, const Class& cls, Type* type); | 199 bool ResolveTypeFromClass(intptr_t type_pos, const Class& cls, Type* type); |
| 200 enum TypeResolution { | 200 enum TypeResolution { |
| 201 kDoNotResolve, // Type resolution is postponed. | 201 kDoNotResolve, // Type resolution is postponed. |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 TryBlocks* try_blocks_list_; | 440 TryBlocks* try_blocks_list_; |
| 441 | 441 |
| 442 char error_msg_[kErrorBuflen]; | 442 char error_msg_[kErrorBuflen]; |
| 443 | 443 |
| 444 DISALLOW_COPY_AND_ASSIGN(Parser); | 444 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 445 }; | 445 }; |
| 446 | 446 |
| 447 } // namespace dart | 447 } // namespace dart |
| 448 | 448 |
| 449 #endif // VM_PARSER_H_ | 449 #endif // VM_PARSER_H_ |
| OLD | NEW |