| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 182 |
| 183 // Reports error message at location of current token. | 183 // Reports error message at location of current token. |
| 184 void ErrorMsg(const char* msg, ...); | 184 void ErrorMsg(const char* msg, ...); |
| 185 void ErrorMsg(intptr_t token_index, const char* msg, ...); | 185 void ErrorMsg(intptr_t token_index, const char* msg, ...); |
| 186 void Warning(const char* msg, ...); | 186 void Warning(const char* msg, ...); |
| 187 void Warning(intptr_t token_index, const char* msg, ...); | 187 void Warning(intptr_t token_index, const char* msg, ...); |
| 188 void Unimplemented(const char* msg); | 188 void Unimplemented(const char* msg); |
| 189 | 189 |
| 190 const Instance& EvaluateConstExpr(AstNode* expr); | 190 const Instance& EvaluateConstExpr(AstNode* expr); |
| 191 void RunStaticFieldInitializer(const Field& field); | 191 void RunStaticFieldInitializer(const Field& field); |
| 192 RawInstance* EvaluateConstConstructorCall( | 192 RawObject* EvaluateConstConstructorCall( |
| 193 const Class& type_class, | 193 const Class& type_class, |
| 194 const AbstractTypeArguments& type_arguments, | 194 const AbstractTypeArguments& type_arguments, |
| 195 const Function& constructor, | 195 const Function& constructor, |
| 196 ArgumentListNode* arguments); | 196 ArgumentListNode* arguments); |
| 197 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); | 197 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); |
| 198 | 198 |
| 199 // Support for parsing of scripts. | 199 // Support for parsing of scripts. |
| 200 void ParseTopLevel(); | 200 void ParseTopLevel(); |
| 201 void ParseClassDefinition(GrowableArray<const Class*>* classes); | 201 void ParseClassDefinition(GrowableArray<const Class*>* classes); |
| 202 void ParseInterfaceDefinition(GrowableArray<const Class*>* classes); | 202 void ParseInterfaceDefinition(GrowableArray<const Class*>* classes); |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 // code at all points in the try block where an exit from the block is | 454 // code at all points in the try block where an exit from the block is |
| 455 // done using 'return', 'break' or 'continue' statements. | 455 // done using 'return', 'break' or 'continue' statements. |
| 456 TryBlocks* try_blocks_list_; | 456 TryBlocks* try_blocks_list_; |
| 457 | 457 |
| 458 DISALLOW_COPY_AND_ASSIGN(Parser); | 458 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 459 }; | 459 }; |
| 460 | 460 |
| 461 } // namespace dart | 461 } // namespace dart |
| 462 | 462 |
| 463 #endif // VM_PARSER_H_ | 463 #endif // VM_PARSER_H_ |
| OLD | NEW |