| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 void SkipFunctionLiteral(); | 166 void SkipFunctionLiteral(); |
| 167 void SkipStringLiteral(); | 167 void SkipStringLiteral(); |
| 168 | 168 |
| 169 void CheckConstructorCallTypeArguments( | 169 void CheckConstructorCallTypeArguments( |
| 170 intptr_t pos, Function& constructor, const TypeArguments& type_arguments); | 170 intptr_t pos, Function& constructor, const TypeArguments& type_arguments); |
| 171 | 171 |
| 172 // Reports error message at location of current token. | 172 // Reports error message at location of current token. |
| 173 void ErrorMsg(const char* msg, ...); | 173 void ErrorMsg(const char* msg, ...); |
| 174 void ErrorMsg(intptr_t token_index, const char* msg, ...); | 174 void ErrorMsg(intptr_t token_index, const char* msg, ...); |
| 175 void Warning(const char* msg, ...); | 175 void Warning(const char* msg, ...); |
| 176 void Warning(intptr_t token_index, const char* msg, ...); |
| 176 void Unimplemented(const char* msg); | 177 void Unimplemented(const char* msg); |
| 177 | 178 |
| 178 const Instance& EvaluateConstExpr(AstNode* expr); | 179 const Instance& EvaluateConstExpr(AstNode* expr); |
| 179 void RunStaticFieldInitializer(const Field& field); | 180 void RunStaticFieldInitializer(const Field& field); |
| 180 RawInstance* EvaluateConstConstructorCall(const Class& type_class, | 181 RawInstance* EvaluateConstConstructorCall(const Class& type_class, |
| 181 const TypeArguments& type_arguments, | 182 const TypeArguments& type_arguments, |
| 182 const Function& constructor, | 183 const Function& constructor, |
| 183 ArgumentListNode* arguments); | 184 ArgumentListNode* arguments); |
| 184 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); | 185 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); |
| 185 | 186 |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 // code at all points in the try block where an exit from the block is | 444 // code at all points in the try block where an exit from the block is |
| 444 // done using 'return', 'break' or 'continue' statements. | 445 // done using 'return', 'break' or 'continue' statements. |
| 445 TryBlocks* try_blocks_list_; | 446 TryBlocks* try_blocks_list_; |
| 446 | 447 |
| 447 DISALLOW_COPY_AND_ASSIGN(Parser); | 448 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 448 }; | 449 }; |
| 449 | 450 |
| 450 } // namespace dart | 451 } // namespace dart |
| 451 | 452 |
| 452 #endif // VM_PARSER_H_ | 453 #endif // VM_PARSER_H_ |
| OLD | NEW |