| 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 "lib/invocation_mirror.h" | 10 #include "lib/invocation_mirror.h" |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 // Reports an already formatted error message. | 330 // Reports an already formatted error message. |
| 331 static void ErrorMsg(const Error& error); | 331 static void ErrorMsg(const Error& error); |
| 332 | 332 |
| 333 // Concatenates two error messages, the previous and the current one. | 333 // Concatenates two error messages, the previous and the current one. |
| 334 void AppendErrorMsg( | 334 void AppendErrorMsg( |
| 335 const Error& prev_error, intptr_t token_pos, const char* format, ...) | 335 const Error& prev_error, intptr_t token_pos, const char* format, ...) |
| 336 PRINTF_ATTRIBUTE(4, 5); | 336 PRINTF_ATTRIBUTE(4, 5); |
| 337 | 337 |
| 338 void CheckRecursiveInvocation(); | 338 void CheckRecursiveInvocation(); |
| 339 | 339 |
| 340 const Instance& EvaluateConstExpr(AstNode* expr); | 340 const Instance& EvaluateConstExpr(intptr_t expr_pos, AstNode* expr); |
| 341 AstNode* RunStaticFieldInitializer(const Field& field); | 341 AstNode* RunStaticFieldInitializer(const Field& field); |
| 342 RawObject* EvaluateConstConstructorCall( | 342 RawObject* EvaluateConstConstructorCall( |
| 343 const Class& type_class, | 343 const Class& type_class, |
| 344 const AbstractTypeArguments& type_arguments, | 344 const AbstractTypeArguments& type_arguments, |
| 345 const Function& constructor, | 345 const Function& constructor, |
| 346 ArgumentListNode* arguments); | 346 ArgumentListNode* arguments); |
| 347 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); | 347 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); |
| 348 | 348 |
| 349 // Support for parsing of scripts. | 349 // Support for parsing of scripts. |
| 350 void ParseTopLevel(); | 350 void ParseTopLevel(); |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 intptr_t last_used_try_index_; | 720 intptr_t last_used_try_index_; |
| 721 | 721 |
| 722 bool unregister_pending_function_; | 722 bool unregister_pending_function_; |
| 723 | 723 |
| 724 DISALLOW_COPY_AND_ASSIGN(Parser); | 724 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 725 }; | 725 }; |
| 726 | 726 |
| 727 } // namespace dart | 727 } // namespace dart |
| 728 | 728 |
| 729 #endif // VM_PARSER_H_ | 729 #endif // VM_PARSER_H_ |
| OLD | NEW |