| 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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 AstNode* ParseInstanceCall(AstNode* receiver, const String& method_name); | 370 AstNode* ParseInstanceCall(AstNode* receiver, const String& method_name); |
| 371 AstNode* ParseClosureCall(AstNode* closure); | 371 AstNode* ParseClosureCall(AstNode* closure); |
| 372 AstNode* ParseInstanceFieldAccess(AstNode* receiver, | 372 AstNode* ParseInstanceFieldAccess(AstNode* receiver, |
| 373 const String& field_name); | 373 const String& field_name); |
| 374 AstNode* GenerateStaticFieldLookup(const Field& field, | 374 AstNode* GenerateStaticFieldLookup(const Field& field, |
| 375 intptr_t ident_pos); | 375 intptr_t ident_pos); |
| 376 AstNode* ParseStaticFieldAccess(const Class& cls, | 376 AstNode* ParseStaticFieldAccess(const Class& cls, |
| 377 const String& field_name, | 377 const String& field_name, |
| 378 intptr_t ident_pos); | 378 intptr_t ident_pos); |
| 379 | 379 |
| 380 RawClass* LookupClass(const String& class_name); | |
| 381 RawObject* LookupTypeClass(const QualIdent& type_name, | |
| 382 TypeResolution type_resolution); | |
| 383 LocalVariable* LookupLocalScope(const String& ident); | 380 LocalVariable* LookupLocalScope(const String& ident); |
| 384 void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name); | 381 void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name); |
| 385 RawClass* TypeParametersScopeClass(); | 382 RawClass* TypeParametersScopeClass(); |
| 386 bool IsInstantiatorRequired() const; | 383 bool IsInstantiatorRequired() const; |
| 387 bool IsDefinedInLexicalScope(const String& ident); | 384 bool IsDefinedInLexicalScope(const String& ident); |
| 388 bool ResolveIdentInLocalScope(intptr_t ident_pos, | 385 bool ResolveIdentInLocalScope(intptr_t ident_pos, |
| 389 const String &ident, | 386 const String &ident, |
| 390 AstNode** node); | 387 AstNode** node); |
| 391 static const bool kResolveLocally = true; | 388 static const bool kResolveLocally = true; |
| 392 static const bool kResolveIncludingImports = false; | 389 static const bool kResolveIncludingImports = false; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 // 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 |
| 458 // done using 'return', 'break' or 'continue' statements. | 455 // done using 'return', 'break' or 'continue' statements. |
| 459 TryBlocks* try_blocks_list_; | 456 TryBlocks* try_blocks_list_; |
| 460 | 457 |
| 461 DISALLOW_COPY_AND_ASSIGN(Parser); | 458 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 462 }; | 459 }; |
| 463 | 460 |
| 464 } // namespace dart | 461 } // namespace dart |
| 465 | 462 |
| 466 #endif // VM_PARSER_H_ | 463 #endif // VM_PARSER_H_ |
| OLD | NEW |