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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 | 591 |
592 // Resolve a primary identifier in the library or prefix scope and | 592 // Resolve a primary identifier in the library or prefix scope and |
593 // generate the corresponding AstNode. | 593 // generate the corresponding AstNode. |
594 AstNode* ResolveIdentInCurrentLibraryScope(intptr_t ident_pos, | 594 AstNode* ResolveIdentInCurrentLibraryScope(intptr_t ident_pos, |
595 const String& ident); | 595 const String& ident); |
596 AstNode* ResolveIdentInPrefixScope(intptr_t ident_pos, | 596 AstNode* ResolveIdentInPrefixScope(intptr_t ident_pos, |
597 const LibraryPrefix& prefix, | 597 const LibraryPrefix& prefix, |
598 const String& ident); | 598 const String& ident); |
599 | 599 |
600 // Find class with the given name in the library or prefix scope. | 600 // Find class with the given name in the library or prefix scope. |
601 RawClass* ResolveClassInCurrentLibraryScope(intptr_t ident_pos, | 601 RawClass* ResolveClassInCurrentLibraryScope(const String& name); |
602 const String& name, | 602 RawClass* ResolveClassInPrefixScope(const LibraryPrefix& prefix, |
603 Error* error); | 603 const String& name); |
604 RawClass* ResolveClassInPrefixScope(intptr_t ident_pos, | |
605 const LibraryPrefix& prefix, | |
606 const String& name, | |
607 Error* error); | |
608 | 604 |
609 // Find name in the library or prefix scope and return the corresponding | 605 // Find name in the library or prefix scope and return the corresponding |
610 // object (field, class, function etc). | 606 // object (field, class, function etc). |
611 RawObject* ResolveNameInCurrentLibraryScope(intptr_t ident_pos, | 607 RawObject* ResolveNameInCurrentLibraryScope(const String& ident); |
612 const String& ident, | 608 RawObject* ResolveNameInPrefixScope(const LibraryPrefix& prefix, |
613 Error* error); | 609 const String& name); |
614 RawObject* ResolveNameInPrefixScope(intptr_t ident_pos, | |
615 const LibraryPrefix& prefix, | |
616 const String& name, | |
617 Error* error); | |
618 | 610 |
619 AstNode* ResolveIdent(intptr_t ident_pos, | 611 AstNode* ResolveIdent(intptr_t ident_pos, |
620 const String& ident, | 612 const String& ident, |
621 bool allow_closure_names); | 613 bool allow_closure_names); |
622 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); | 614 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); |
623 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, | 615 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, |
624 Token::Kind binary_op, | 616 Token::Kind binary_op, |
625 AstNode* lhs, | 617 AstNode* lhs, |
626 AstNode* rhs); | 618 AstNode* rhs); |
627 AstNode* ExpandAssignableOp(intptr_t op_pos, | 619 AstNode* ExpandAssignableOp(intptr_t op_pos, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 intptr_t last_used_try_index_; | 710 intptr_t last_used_try_index_; |
719 | 711 |
720 bool unregister_pending_function_; | 712 bool unregister_pending_function_; |
721 | 713 |
722 DISALLOW_COPY_AND_ASSIGN(Parser); | 714 DISALLOW_COPY_AND_ASSIGN(Parser); |
723 }; | 715 }; |
724 | 716 |
725 } // namespace dart | 717 } // namespace dart |
726 | 718 |
727 #endif // VM_PARSER_H_ | 719 #endif // VM_PARSER_H_ |
OLD | NEW |