| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 void SkipPostfixExpr(); | 157 void SkipPostfixExpr(); |
| 158 void SkipPrimary(); | 158 void SkipPrimary(); |
| 159 void SkipCompoundLiteral(); | 159 void SkipCompoundLiteral(); |
| 160 void SkipNewOperator(); | 160 void SkipNewOperator(); |
| 161 void SkipActualParameters(); | 161 void SkipActualParameters(); |
| 162 void SkipMapLiteral(); | 162 void SkipMapLiteral(); |
| 163 void SkipArrayLiteral(); | 163 void SkipArrayLiteral(); |
| 164 void SkipFunctionLiteral(); | 164 void SkipFunctionLiteral(); |
| 165 void SkipStringLiteral(); | 165 void SkipStringLiteral(); |
| 166 | 166 |
| 167 void CheckConstructorCallTypeArguments( |
| 168 intptr_t pos, Function& constructor, const TypeArguments& type_arguments); |
| 169 |
| 167 // Reports error message at location of current token. | 170 // Reports error message at location of current token. |
| 168 void ErrorMsg(const char* msg, ...); | 171 void ErrorMsg(const char* msg, ...); |
| 169 void ErrorMsg(intptr_t token_index, const char* msg, ...); | 172 void ErrorMsg(intptr_t token_index, const char* msg, ...); |
| 170 void Warning(const char* msg, ...); | 173 void Warning(const char* msg, ...); |
| 171 void Unimplemented(const char* msg); | 174 void Unimplemented(const char* msg); |
| 172 | 175 |
| 173 const Instance& EvaluateConstExpr(AstNode* expr); | 176 const Instance& EvaluateConstExpr(AstNode* expr); |
| 174 void RunStaticFieldInitializer(const Field& field); | 177 void RunStaticFieldInitializer(const Field& field); |
| 175 RawInstance* EvaluateConstConstructorCall(const Class& type_class, | 178 RawInstance* EvaluateConstConstructorCall(const Class& type_class, |
| 176 const TypeArguments& type_arguments, | 179 const TypeArguments& type_arguments, |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 TryBlocks* try_blocks_list_; | 447 TryBlocks* try_blocks_list_; |
| 445 | 448 |
| 446 char error_msg_[kErrorBuflen]; | 449 char error_msg_[kErrorBuflen]; |
| 447 | 450 |
| 448 DISALLOW_COPY_AND_ASSIGN(Parser); | 451 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 449 }; | 452 }; |
| 450 | 453 |
| 451 } // namespace dart | 454 } // namespace dart |
| 452 | 455 |
| 453 #endif // VM_PARSER_H_ | 456 #endif // VM_PARSER_H_ |
| OLD | NEW |