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

Unified Diff: runtime/vm/parser.h

Issue 10825140: Add check for duplicate field initialization (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/compiler/implementation/universe.dart ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.h
===================================================================
--- runtime/vm/parser.h (revision 10144)
+++ runtime/vm/parser.h (working copy)
@@ -308,13 +308,21 @@
void CheckConstFieldsInitialized(const Class& cls);
void CheckConstructors(ClassDesc* members);
void ParseInitializedInstanceFields(const Class& cls,
- GrowableArray<FieldInitExpression>* initializers);
+ GrowableArray<FieldInitExpression>* initializers,
+ GrowableArray<Field*>* initialized_fields);
+ void CheckDuplicateFieldInit(intptr_t init_pos,
+ GrowableArray<Field*>* initialized_fields,
+ Field* field);
void GenerateSuperConstructorCall(const Class& cls,
LocalVariable* receiver);
AstNode* ParseSuperInitializer(const Class& cls, LocalVariable* receiver);
- AstNode* ParseInitializer(const Class& cls, LocalVariable* receiver);
+ AstNode* ParseInitializer(const Class& cls,
+ LocalVariable* receiver,
+ GrowableArray<Field*>* initialized_fields);
void ParseConstructorRedirection(const Class& cls, LocalVariable* receiver);
- void ParseInitializers(const Class& cls, LocalVariable* receiver);
+ void ParseInitializers(const Class& cls,
+ LocalVariable* receiver,
+ GrowableArray<Field*>* initialized_fields);
String& ParseNativeDeclaration();
// TODO(srdjan): Return TypeArguments instead of Array?
RawArray* ParseInterfaceList();
« no previous file with comments | « lib/compiler/implementation/universe.dart ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698