Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(819)

Side by Side Diff: runtime/vm/parser.h

Issue 8417056: Separating constructor parsing from function parsing (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698