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 "platform/assert.h" | 10 #include "platform/assert.h" |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 const String& ident); | 590 const String& ident); |
591 AstNode* ResolveIdentInPrefixScope(intptr_t ident_pos, | 591 AstNode* ResolveIdentInPrefixScope(intptr_t ident_pos, |
592 const LibraryPrefix& prefix, | 592 const LibraryPrefix& prefix, |
593 const String& ident); | 593 const String& ident); |
594 | 594 |
595 // Find class with the given name in the library or prefix scope. | 595 // Find class with the given name in the library or prefix scope. |
596 RawClass* ResolveClassInCurrentLibraryScope(const String& name); | 596 RawClass* ResolveClassInCurrentLibraryScope(const String& name); |
597 RawClass* ResolveClassInPrefixScope(const LibraryPrefix& prefix, | 597 RawClass* ResolveClassInPrefixScope(const LibraryPrefix& prefix, |
598 const String& name); | 598 const String& name); |
599 | 599 |
600 // Find name in the library or prefix scope and return the corresponding | |
601 // object (field, class, function etc). | |
602 RawObject* ResolveNameInCurrentLibraryScope(const String& ident); | |
603 RawObject* ResolveNameInPrefixScope(const LibraryPrefix& prefix, | |
604 const String& name); | |
605 | |
606 AstNode* ResolveIdent(intptr_t ident_pos, | 600 AstNode* ResolveIdent(intptr_t ident_pos, |
607 const String& ident, | 601 const String& ident, |
608 bool allow_closure_names); | 602 bool allow_closure_names); |
609 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); | 603 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); |
610 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, | 604 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, |
611 Token::Kind binary_op, | 605 Token::Kind binary_op, |
612 AstNode* lhs, | 606 AstNode* lhs, |
613 AstNode* rhs); | 607 AstNode* rhs); |
614 AstNode* ExpandAssignableOp(intptr_t op_pos, | 608 AstNode* ExpandAssignableOp(intptr_t op_pos, |
615 Token::Kind assignment_op, | 609 Token::Kind assignment_op, |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 intptr_t last_used_try_index_; | 708 intptr_t last_used_try_index_; |
715 | 709 |
716 bool unregister_pending_function_; | 710 bool unregister_pending_function_; |
717 | 711 |
718 DISALLOW_COPY_AND_ASSIGN(Parser); | 712 DISALLOW_COPY_AND_ASSIGN(Parser); |
719 }; | 713 }; |
720 | 714 |
721 } // namespace dart | 715 } // namespace dart |
722 | 716 |
723 #endif // VM_PARSER_H_ | 717 #endif // VM_PARSER_H_ |
OLD | NEW |