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

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

Issue 10832283: Allow non-const field initializers (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months 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') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "vm/ast.h" 10 #include "vm/ast.h"
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 void ParseClassMemberDefinition(ClassDesc* members); 306 void ParseClassMemberDefinition(ClassDesc* members);
307 void ParseFormalParameter(bool allow_explicit_default_value, 307 void ParseFormalParameter(bool allow_explicit_default_value,
308 ParamList* params); 308 ParamList* params);
309 void ParseFormalParameters(bool allow_explicit_default_values, 309 void ParseFormalParameters(bool allow_explicit_default_values,
310 ParamList* params); 310 ParamList* params);
311 void ParseFormalParameterList(bool allow_explicit_default_values, 311 void ParseFormalParameterList(bool allow_explicit_default_values,
312 ParamList* params); 312 ParamList* params);
313 void CheckConstFieldsInitialized(const Class& cls); 313 void CheckConstFieldsInitialized(const Class& cls);
314 void CheckConstructors(ClassDesc* members); 314 void CheckConstructors(ClassDesc* members);
315 void ParseInitializedInstanceFields(const Class& cls, 315 void ParseInitializedInstanceFields(const Class& cls,
316 GrowableArray<FieldInitExpression>* initializers, 316 LocalVariable* receiver,
317 GrowableArray<Field*>* initialized_fields); 317 GrowableArray<Field*>* initialized_fields);
318 void CheckDuplicateFieldInit(intptr_t init_pos, 318 void CheckDuplicateFieldInit(intptr_t init_pos,
319 GrowableArray<Field*>* initialized_fields, 319 GrowableArray<Field*>* initialized_fields,
320 Field* field); 320 Field* field);
321 void GenerateSuperConstructorCall(const Class& cls, 321 void GenerateSuperConstructorCall(const Class& cls,
322 LocalVariable* receiver); 322 LocalVariable* receiver);
323 AstNode* ParseSuperInitializer(const Class& cls, LocalVariable* receiver); 323 AstNode* ParseSuperInitializer(const Class& cls, LocalVariable* receiver);
324 AstNode* ParseInitializer(const Class& cls, 324 AstNode* ParseInitializer(const Class& cls,
325 LocalVariable* receiver, 325 LocalVariable* receiver,
326 GrowableArray<Field*>* initialized_fields); 326 GrowableArray<Field*>* initialized_fields);
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 570
571 // Allocate temporary only once per function. 571 // Allocate temporary only once per function.
572 LocalVariable* expression_temp_; 572 LocalVariable* expression_temp_;
573 573
574 DISALLOW_COPY_AND_ASSIGN(Parser); 574 DISALLOW_COPY_AND_ASSIGN(Parser);
575 }; 575 };
576 576
577 } // namespace dart 577 } // namespace dart
578 578
579 #endif // VM_PARSER_H_ 579 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698