| 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 AstNode* ParseSuperOperator(); | 238 AstNode* ParseSuperOperator(); |
| 239 | 239 |
| 240 static void SetupDefaultsForOptionalParams(const ParamList* params, | 240 static void SetupDefaultsForOptionalParams(const ParamList* params, |
| 241 Array& default_values); | 241 Array& default_values); |
| 242 AstNode* CreateImplicitClosureNode(const Function& func, | 242 AstNode* CreateImplicitClosureNode(const Function& func, |
| 243 intptr_t token_pos, | 243 intptr_t token_pos, |
| 244 AstNode* receiver); | 244 AstNode* receiver); |
| 245 void AddFormalParamsToFunction(const ParamList* params, const Function& func); | 245 void AddFormalParamsToFunction(const ParamList* params, const Function& func); |
| 246 void AddFormalParamsToScope(const ParamList* params, LocalScope* scope); | 246 void AddFormalParamsToScope(const ParamList* params, LocalScope* scope); |
| 247 | 247 |
| 248 SequenceNode* ParseConstructor(const Function& func, |
| 249 Array& default_parameter_values); |
| 248 SequenceNode* ParseFunc(const Function& func, | 250 SequenceNode* ParseFunc(const Function& func, |
| 249 Array& default_parameter_values); | 251 Array& default_parameter_values); |
| 250 | 252 |
| 251 void ParseNativeFunctionBlock(const ParamList* params, const Function& func); | 253 void ParseNativeFunctionBlock(const ParamList* params, const Function& func); |
| 252 | 254 |
| 253 SequenceNode* ParseInstanceGetter(const Function& func); | 255 SequenceNode* ParseInstanceGetter(const Function& func); |
| 254 SequenceNode* ParseInstanceSetter(const Function& func); | 256 SequenceNode* ParseInstanceSetter(const Function& func); |
| 255 SequenceNode* ParseStaticConstGetter(const Function& func); | 257 SequenceNode* ParseStaticConstGetter(const Function& func); |
| 256 | 258 |
| 257 void ChainNewBlock(LocalScope* outer_scope); | 259 void ChainNewBlock(LocalScope* outer_scope); |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 TryBlocks* try_blocks_list_; | 444 TryBlocks* try_blocks_list_; |
| 443 | 445 |
| 444 char error_msg_[kErrorBuflen]; | 446 char error_msg_[kErrorBuflen]; |
| 445 | 447 |
| 446 DISALLOW_COPY_AND_ASSIGN(Parser); | 448 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 447 }; | 449 }; |
| 448 | 450 |
| 449 } // namespace dart | 451 } // namespace dart |
| 450 | 452 |
| 451 #endif // VM_PARSER_H_ | 453 #endif // VM_PARSER_H_ |
| OLD | NEW |