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

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

Issue 505033002: Initializing a final instance is a runtime error (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « 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 "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 bool evaluate_metadata, 463 bool evaluate_metadata,
464 ParamList* params); 464 ParamList* params);
465 void CheckFieldsInitialized(const Class& cls); 465 void CheckFieldsInitialized(const Class& cls);
466 void AddImplicitConstructor(const Class& cls); 466 void AddImplicitConstructor(const Class& cls);
467 void CheckConstructors(ClassDesc* members); 467 void CheckConstructors(ClassDesc* members);
468 AstNode* ParseExternalInitializedField(const Field& field); 468 AstNode* ParseExternalInitializedField(const Field& field);
469 void ParseInitializedInstanceFields( 469 void ParseInitializedInstanceFields(
470 const Class& cls, 470 const Class& cls,
471 LocalVariable* receiver, 471 LocalVariable* receiver,
472 GrowableArray<Field*>* initialized_fields); 472 GrowableArray<Field*>* initialized_fields);
473 void CheckDuplicateFieldInit(intptr_t init_pos, 473 AstNode* CheckDuplicateFieldInit(
474 GrowableArray<Field*>* initialized_fields, 474 intptr_t init_pos,
475 Field* field); 475 GrowableArray<Field*>* initialized_fields,
476 AstNode* instance,
477 Field* field,
478 AstNode* init_value);
476 void GenerateSuperConstructorCall(const Class& cls, 479 void GenerateSuperConstructorCall(const Class& cls,
477 intptr_t supercall_pos, 480 intptr_t supercall_pos,
478 LocalVariable* receiver, 481 LocalVariable* receiver,
479 ArgumentListNode* forwarding_args); 482 ArgumentListNode* forwarding_args);
480 AstNode* ParseSuperInitializer(const Class& cls, LocalVariable* receiver); 483 AstNode* ParseSuperInitializer(const Class& cls, LocalVariable* receiver);
481 AstNode* ParseInitializer(const Class& cls, 484 AstNode* ParseInitializer(const Class& cls,
482 LocalVariable* receiver, 485 LocalVariable* receiver,
483 GrowableArray<Field*>* initialized_fields); 486 GrowableArray<Field*>* initialized_fields);
484 void ParseConstructorRedirection(const Class& cls, LocalVariable* receiver); 487 void ParseConstructorRedirection(const Class& cls, LocalVariable* receiver);
485 void ParseInitializers(const Class& cls, 488 void ParseInitializers(const Class& cls,
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 int16_t last_used_try_index_; 811 int16_t last_used_try_index_;
809 812
810 bool unregister_pending_function_; 813 bool unregister_pending_function_;
811 814
812 DISALLOW_COPY_AND_ASSIGN(Parser); 815 DISALLOW_COPY_AND_ASSIGN(Parser);
813 }; 816 };
814 817
815 } // namespace dart 818 } // namespace dart
816 819
817 #endif // VM_PARSER_H_ 820 #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