| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 void Warning(intptr_t token_index, const char* msg, ...); | 226 void Warning(intptr_t token_index, const char* msg, ...); |
| 227 | 227 |
| 228 // Reports an already formatted error message. | 228 // Reports an already formatted error message. |
| 229 void ErrorMsg(const Error& error); | 229 void ErrorMsg(const Error& error); |
| 230 | 230 |
| 231 // Concatenates two error messages, the previous and the current one. | 231 // Concatenates two error messages, the previous and the current one. |
| 232 void AppendErrorMsg( | 232 void AppendErrorMsg( |
| 233 const Error& prev_error, intptr_t token_index, const char* format, ...); | 233 const Error& prev_error, intptr_t token_index, const char* format, ...); |
| 234 | 234 |
| 235 const Instance& EvaluateConstExpr(AstNode* expr); | 235 const Instance& EvaluateConstExpr(AstNode* expr); |
| 236 void RunStaticFieldInitializer(const Field& field); | 236 AstNode* RunStaticFieldInitializer(const Field& field); |
| 237 RawObject* EvaluateConstConstructorCall( | 237 RawObject* EvaluateConstConstructorCall( |
| 238 const Class& type_class, | 238 const Class& type_class, |
| 239 const AbstractTypeArguments& type_arguments, | 239 const AbstractTypeArguments& type_arguments, |
| 240 const Function& constructor, | 240 const Function& constructor, |
| 241 ArgumentListNode* arguments); | 241 ArgumentListNode* arguments); |
| 242 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); | 242 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); |
| 243 | 243 |
| 244 // Support for parsing of scripts. | 244 // Support for parsing of scripts. |
| 245 void ParseTopLevel(); | 245 void ParseTopLevel(); |
| 246 void ParseClassDefinition(const GrowableObjectArray& pending_classes); | 246 void ParseClassDefinition(const GrowableObjectArray& pending_classes); |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 // code at all points in the try block where an exit from the block is | 504 // code at all points in the try block where an exit from the block is |
| 505 // done using 'return', 'break' or 'continue' statements. | 505 // done using 'return', 'break' or 'continue' statements. |
| 506 TryBlocks* try_blocks_list_; | 506 TryBlocks* try_blocks_list_; |
| 507 | 507 |
| 508 DISALLOW_COPY_AND_ASSIGN(Parser); | 508 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 509 }; | 509 }; |
| 510 | 510 |
| 511 } // namespace dart | 511 } // namespace dart |
| 512 | 512 |
| 513 #endif // VM_PARSER_H_ | 513 #endif // VM_PARSER_H_ |
| OLD | NEW |