| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |