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

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

Issue 24896002: Support forwarding constructors for mixin typedefs (issue 11888). (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 | « runtime/vm/class_finalizer.cc ('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 "lib/invocation_mirror.h" 10 #include "lib/invocation_mirror.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 PRINTF_ATTRIBUTE(4, 5); 180 PRINTF_ATTRIBUTE(4, 5);
181 181
182 // Same as FormatError, but appends the new error to the 'prev_error'. 182 // Same as FormatError, but appends the new error to the 'prev_error'.
183 static RawError* FormatErrorWithAppend(const Error& prev_error, 183 static RawError* FormatErrorWithAppend(const Error& prev_error,
184 const Script& script, 184 const Script& script,
185 intptr_t token_pos, 185 intptr_t token_pos,
186 const char* message_header, 186 const char* message_header,
187 const char* format, 187 const char* format,
188 va_list args); 188 va_list args);
189 189
190 static void AddImplicitConstructor(const Class& cls);
191
192 private: 190 private:
193 friend class EffectGraphVisitor; // For BuildNoSuchMethodArguments. 191 friend class EffectGraphVisitor; // For BuildNoSuchMethodArguments.
194 192
195 struct Block; 193 struct Block;
196 class TryBlocks; 194 class TryBlocks;
197 195
198 Parser(const Script& script, const Library& library, intptr_t token_pos); 196 Parser(const Script& script, const Library& library, intptr_t token_pos);
199 Parser(const Script& script, ParsedFunction* function, intptr_t token_pos); 197 Parser(const Script& script, ParsedFunction* function, intptr_t token_pos);
200 ~Parser(); 198 ~Parser();
201 199
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 void ParseFormalParameter(bool allow_explicit_default_value, 389 void ParseFormalParameter(bool allow_explicit_default_value,
392 bool evaluate_metadata, 390 bool evaluate_metadata,
393 ParamList* params); 391 ParamList* params);
394 void ParseFormalParameters(bool allow_explicit_default_values, 392 void ParseFormalParameters(bool allow_explicit_default_values,
395 bool evaluate_metadata, 393 bool evaluate_metadata,
396 ParamList* params); 394 ParamList* params);
397 void ParseFormalParameterList(bool allow_explicit_default_values, 395 void ParseFormalParameterList(bool allow_explicit_default_values,
398 bool evaluate_metadata, 396 bool evaluate_metadata,
399 ParamList* params); 397 ParamList* params);
400 void CheckConstFieldsInitialized(const Class& cls); 398 void CheckConstFieldsInitialized(const Class& cls);
399 static void AddImplicitConstructor(const Class& cls);
401 void CheckConstructors(ClassDesc* members); 400 void CheckConstructors(ClassDesc* members);
402 AstNode* ParseExternalInitializedField(const Field& field); 401 AstNode* ParseExternalInitializedField(const Field& field);
403 void ParseInitializedInstanceFields( 402 void ParseInitializedInstanceFields(
404 const Class& cls, 403 const Class& cls,
405 LocalVariable* receiver, 404 LocalVariable* receiver,
406 GrowableArray<Field*>* initialized_fields); 405 GrowableArray<Field*>* initialized_fields);
407 void CheckDuplicateFieldInit(intptr_t init_pos, 406 void CheckDuplicateFieldInit(intptr_t init_pos,
408 GrowableArray<Field*>* initialized_fields, 407 GrowableArray<Field*>* initialized_fields,
409 Field* field); 408 Field* field);
410 void GenerateSuperConstructorCall(const Class& cls, 409 void GenerateSuperConstructorCall(const Class& cls,
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 intptr_t last_used_try_index_; 715 intptr_t last_used_try_index_;
717 716
718 bool unregister_pending_function_; 717 bool unregister_pending_function_;
719 718
720 DISALLOW_COPY_AND_ASSIGN(Parser); 719 DISALLOW_COPY_AND_ASSIGN(Parser);
721 }; 720 };
722 721
723 } // namespace dart 722 } // namespace dart
724 723
725 #endif // VM_PARSER_H_ 724 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698