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

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

Issue 26023005: It is not an error anymore to leave an instance final field uninitialized. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 "lib/invocation_mirror.h" 10 #include "lib/invocation_mirror.h"
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 intptr_t metadata_pos); 388 intptr_t metadata_pos);
389 void ParseFormalParameter(bool allow_explicit_default_value, 389 void ParseFormalParameter(bool allow_explicit_default_value,
390 bool evaluate_metadata, 390 bool evaluate_metadata,
391 ParamList* params); 391 ParamList* params);
392 void ParseFormalParameters(bool allow_explicit_default_values, 392 void ParseFormalParameters(bool allow_explicit_default_values,
393 bool evaluate_metadata, 393 bool evaluate_metadata,
394 ParamList* params); 394 ParamList* params);
395 void ParseFormalParameterList(bool allow_explicit_default_values, 395 void ParseFormalParameterList(bool allow_explicit_default_values,
396 bool evaluate_metadata, 396 bool evaluate_metadata,
397 ParamList* params); 397 ParamList* params);
398 void CheckConstFieldsInitialized(const Class& cls); 398 void CheckFieldsInitialized(const Class& cls);
399 static void AddImplicitConstructor(const Class& cls); 399 static void AddImplicitConstructor(const Class& cls);
400 void CheckConstructors(ClassDesc* members); 400 void CheckConstructors(ClassDesc* members);
401 AstNode* ParseExternalInitializedField(const Field& field); 401 AstNode* ParseExternalInitializedField(const Field& field);
402 void ParseInitializedInstanceFields( 402 void ParseInitializedInstanceFields(
403 const Class& cls, 403 const Class& cls,
404 LocalVariable* receiver, 404 LocalVariable* receiver,
405 GrowableArray<Field*>* initialized_fields); 405 GrowableArray<Field*>* initialized_fields);
406 void CheckDuplicateFieldInit(intptr_t init_pos, 406 void CheckDuplicateFieldInit(intptr_t init_pos,
407 GrowableArray<Field*>* initialized_fields, 407 GrowableArray<Field*>* initialized_fields,
408 Field* field); 408 Field* field);
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 intptr_t last_used_try_index_; 717 intptr_t last_used_try_index_;
718 718
719 bool unregister_pending_function_; 719 bool unregister_pending_function_;
720 720
721 DISALLOW_COPY_AND_ASSIGN(Parser); 721 DISALLOW_COPY_AND_ASSIGN(Parser);
722 }; 722 };
723 723
724 } // namespace dart 724 } // namespace dart
725 725
726 #endif // VM_PARSER_H_ 726 #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