| 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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 AstNode* GenerateStaticFieldLookup(const Field& field, | 541 AstNode* GenerateStaticFieldLookup(const Field& field, |
| 542 intptr_t ident_pos); | 542 intptr_t ident_pos); |
| 543 AstNode* ParseStaticFieldAccess(const Class& cls, | 543 AstNode* ParseStaticFieldAccess(const Class& cls, |
| 544 const String& field_name, | 544 const String& field_name, |
| 545 intptr_t ident_pos, | 545 intptr_t ident_pos, |
| 546 bool consume_cascades); | 546 bool consume_cascades); |
| 547 | 547 |
| 548 LocalVariable* LookupLocalScope(const String& ident); | 548 LocalVariable* LookupLocalScope(const String& ident); |
| 549 void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name); | 549 void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name); |
| 550 bool ParsingStaticMember() const; | 550 bool ParsingStaticMember() const; |
| 551 const Type* ReceiverType(intptr_t type_pos) const; | 551 const Type* ReceiverType() const; |
| 552 bool IsInstantiatorRequired() const; | 552 bool IsInstantiatorRequired() const; |
| 553 bool ResolveIdentInLocalScope(intptr_t ident_pos, | 553 bool ResolveIdentInLocalScope(intptr_t ident_pos, |
| 554 const String &ident, | 554 const String &ident, |
| 555 AstNode** node); | 555 AstNode** node); |
| 556 static const bool kResolveLocally = true; | 556 static const bool kResolveLocally = true; |
| 557 static const bool kResolveIncludingImports = false; | 557 static const bool kResolveIncludingImports = false; |
| 558 | 558 |
| 559 // Resolve a primary identifier in the library or prefix scope and | 559 // Resolve a primary identifier in the library or prefix scope and |
| 560 // generate the corresponding AstNode. | 560 // generate the corresponding AstNode. |
| 561 AstNode* ResolveIdentInCurrentLibraryScope(intptr_t ident_pos, | 561 AstNode* ResolveIdentInCurrentLibraryScope(intptr_t ident_pos, |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 // code at all points in the try block where an exit from the block is | 677 // code at all points in the try block where an exit from the block is |
| 678 // done using 'return', 'break' or 'continue' statements. | 678 // done using 'return', 'break' or 'continue' statements. |
| 679 TryBlocks* try_blocks_list_; | 679 TryBlocks* try_blocks_list_; |
| 680 | 680 |
| 681 DISALLOW_COPY_AND_ASSIGN(Parser); | 681 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 682 }; | 682 }; |
| 683 | 683 |
| 684 } // namespace dart | 684 } // namespace dart |
| 685 | 685 |
| 686 #endif // VM_PARSER_H_ | 686 #endif // VM_PARSER_H_ |
| OLD | NEW |