| 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 "vm/ast.h" | 10 #include "vm/ast.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 void SkipUnaryExpr(); | 157 void SkipUnaryExpr(); |
| 158 void SkipPostfixExpr(); | 158 void SkipPostfixExpr(); |
| 159 void SkipPrimary(); | 159 void SkipPrimary(); |
| 160 void SkipCompoundLiteral(); | 160 void SkipCompoundLiteral(); |
| 161 void SkipNewOperator(); | 161 void SkipNewOperator(); |
| 162 void SkipActualParameters(); | 162 void SkipActualParameters(); |
| 163 void SkipMapLiteral(); | 163 void SkipMapLiteral(); |
| 164 void SkipListLiteral(); | 164 void SkipListLiteral(); |
| 165 void SkipFunctionLiteral(); | 165 void SkipFunctionLiteral(); |
| 166 void SkipStringLiteral(); | 166 void SkipStringLiteral(); |
| 167 void SkipQualIdent(); |
| 167 | 168 |
| 168 void CheckConstructorCallTypeArguments( | 169 void CheckConstructorCallTypeArguments( |
| 169 intptr_t pos, | 170 intptr_t pos, |
| 170 Function& constructor, | 171 Function& constructor, |
| 171 const AbstractTypeArguments& type_arguments); | 172 const AbstractTypeArguments& type_arguments); |
| 172 | 173 |
| 173 // Format an error or warning message into the message_buffer. | 174 // Format an error or warning message into the message_buffer. |
| 174 // A null script means no source and a negative token_index means no position. | 175 // A null script means no source and a negative token_index means no position. |
| 175 static void FormatMessage(const Script& script, | 176 static void FormatMessage(const Script& script, |
| 176 intptr_t token_index, | 177 intptr_t token_index, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 void ParseQualIdent(QualIdent* qual_ident); | 230 void ParseQualIdent(QualIdent* qual_ident); |
| 230 void ParseMethodOrConstructor(ClassDesc* members, MemberDesc* method); | 231 void ParseMethodOrConstructor(ClassDesc* members, MemberDesc* method); |
| 231 void ParseFieldDefinition(ClassDesc* members, MemberDesc* field); | 232 void ParseFieldDefinition(ClassDesc* members, MemberDesc* field); |
| 232 void ParseClassMemberDefinition(ClassDesc* members); | 233 void ParseClassMemberDefinition(ClassDesc* members); |
| 233 void ParseFormalParameter(bool allow_explicit_default_value, | 234 void ParseFormalParameter(bool allow_explicit_default_value, |
| 234 ParamList* params); | 235 ParamList* params); |
| 235 void ParseFormalParameters(bool allow_explicit_default_values, | 236 void ParseFormalParameters(bool allow_explicit_default_values, |
| 236 ParamList* params); | 237 ParamList* params); |
| 237 void ParseFormalParameterList(bool allow_explicit_default_values, | 238 void ParseFormalParameterList(bool allow_explicit_default_values, |
| 238 ParamList* params); | 239 ParamList* params); |
| 239 void ParseNamedFormalParameters(bool are_implicitly_const, ParamList* params); | |
| 240 void CheckConstFieldsInitialized(const Class& cls); | 240 void CheckConstFieldsInitialized(const Class& cls); |
| 241 void CheckConstructors(ClassDesc* members); | 241 void CheckConstructors(ClassDesc* members); |
| 242 void ParseInitializedInstanceFields(const Class& cls, | 242 void ParseInitializedInstanceFields(const Class& cls, |
| 243 GrowableArray<FieldInitExpression>* initializers); | 243 GrowableArray<FieldInitExpression>* initializers); |
| 244 void GenerateSuperConstructorCall(const Class& cls, | 244 void GenerateSuperConstructorCall(const Class& cls, |
| 245 LocalVariable* receiver); | 245 LocalVariable* receiver); |
| 246 AstNode* ParseSuperInitializer(const Class& cls, LocalVariable* receiver); | 246 AstNode* ParseSuperInitializer(const Class& cls, LocalVariable* receiver); |
| 247 AstNode* ParseInitializer(const Class& cls, LocalVariable* receiver); | 247 AstNode* ParseInitializer(const Class& cls, LocalVariable* receiver); |
| 248 void ParseConstructorRedirection(const Class& cls, LocalVariable* receiver); | 248 void ParseConstructorRedirection(const Class& cls, LocalVariable* receiver); |
| 249 void ParseInitializers(const Class& cls, LocalVariable* receiver); | 249 void ParseInitializers(const Class& cls, LocalVariable* receiver); |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 // code at all points in the try block where an exit from the block is | 454 // code at all points in the try block where an exit from the block is |
| 455 // done using 'return', 'break' or 'continue' statements. | 455 // done using 'return', 'break' or 'continue' statements. |
| 456 TryBlocks* try_blocks_list_; | 456 TryBlocks* try_blocks_list_; |
| 457 | 457 |
| 458 DISALLOW_COPY_AND_ASSIGN(Parser); | 458 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 459 }; | 459 }; |
| 460 | 460 |
| 461 } // namespace dart | 461 } // namespace dart |
| 462 | 462 |
| 463 #endif // VM_PARSER_H_ | 463 #endif // VM_PARSER_H_ |
| OLD | NEW |