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

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

Issue 10905109: Add named constructor name checking (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « runtime/bin/process_impl.dart ('k') | 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 void ParseFieldDefinition(ClassDesc* members, MemberDesc* field); 312 void ParseFieldDefinition(ClassDesc* members, MemberDesc* field);
313 void ParseClassMemberDefinition(ClassDesc* members); 313 void ParseClassMemberDefinition(ClassDesc* members);
314 void ParseFormalParameter(bool allow_explicit_default_value, 314 void ParseFormalParameter(bool allow_explicit_default_value,
315 ParamList* params); 315 ParamList* params);
316 void ParseFormalParameters(bool allow_explicit_default_values, 316 void ParseFormalParameters(bool allow_explicit_default_values,
317 ParamList* params); 317 ParamList* params);
318 void ParseFormalParameterList(bool allow_explicit_default_values, 318 void ParseFormalParameterList(bool allow_explicit_default_values,
319 ParamList* params); 319 ParamList* params);
320 void CheckConstFieldsInitialized(const Class& cls); 320 void CheckConstFieldsInitialized(const Class& cls);
321 void AddImplicitConstructor(ClassDesc* members); 321 void AddImplicitConstructor(ClassDesc* members);
322 void CheckConstructorCycles(ClassDesc* members); 322 void CheckConstructors(ClassDesc* members);
323 void ParseInitializedInstanceFields( 323 void ParseInitializedInstanceFields(
324 const Class& cls, 324 const Class& cls,
325 LocalVariable* receiver, 325 LocalVariable* receiver,
326 GrowableArray<Field*>* initialized_fields); 326 GrowableArray<Field*>* initialized_fields);
327 void CheckDuplicateFieldInit(intptr_t init_pos, 327 void CheckDuplicateFieldInit(intptr_t init_pos,
328 GrowableArray<Field*>* initialized_fields, 328 GrowableArray<Field*>* initialized_fields,
329 Field* field); 329 Field* field);
330 void GenerateSuperConstructorCall(const Class& cls, 330 void GenerateSuperConstructorCall(const Class& cls,
331 LocalVariable* receiver); 331 LocalVariable* receiver);
332 AstNode* ParseSuperInitializer(const Class& cls, LocalVariable* receiver); 332 AstNode* ParseSuperInitializer(const Class& cls, LocalVariable* receiver);
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 606
607 // Allocate temporary only once per function. 607 // Allocate temporary only once per function.
608 LocalVariable* expression_temp_; 608 LocalVariable* expression_temp_;
609 609
610 DISALLOW_COPY_AND_ASSIGN(Parser); 610 DISALLOW_COPY_AND_ASSIGN(Parser);
611 }; 611 };
612 612
613 } // namespace dart 613 } // namespace dart
614 614
615 #endif // VM_PARSER_H_ 615 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/bin/process_impl.dart ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698