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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 static const bool kResolveIncludingImports = false; | 727 static const bool kResolveIncludingImports = false; |
728 | 728 |
729 // Resolve a primary identifier in the library or prefix scope and | 729 // Resolve a primary identifier in the library or prefix scope and |
730 // generate the corresponding AstNode. | 730 // generate the corresponding AstNode. |
731 AstNode* ResolveIdentInCurrentLibraryScope(intptr_t ident_pos, | 731 AstNode* ResolveIdentInCurrentLibraryScope(intptr_t ident_pos, |
732 const String& ident); | 732 const String& ident); |
733 AstNode* ResolveIdentInPrefixScope(intptr_t ident_pos, | 733 AstNode* ResolveIdentInPrefixScope(intptr_t ident_pos, |
734 const LibraryPrefix& prefix, | 734 const LibraryPrefix& prefix, |
735 const String& ident); | 735 const String& ident); |
736 | 736 |
737 // Find class with the given name in the library or prefix scope. | |
738 RawClass* ResolveClassInCurrentLibraryScope(const String& name); | |
739 RawClass* ResolveClassInPrefixScope(const LibraryPrefix& prefix, | |
740 const String& name); | |
741 | |
742 AstNode* ResolveIdent(intptr_t ident_pos, | 737 AstNode* ResolveIdent(intptr_t ident_pos, |
743 const String& ident, | 738 const String& ident, |
744 bool allow_closure_names); | 739 bool allow_closure_names); |
745 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); | 740 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); |
746 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, | 741 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, |
747 Token::Kind binary_op, | 742 Token::Kind binary_op, |
748 AstNode* lhs, | 743 AstNode* lhs, |
749 AstNode* rhs); | 744 AstNode* rhs); |
750 AstNode* ExpandAssignableOp(intptr_t op_pos, | 745 AstNode* ExpandAssignableOp(intptr_t op_pos, |
751 Token::Kind assignment_op, | 746 Token::Kind assignment_op, |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 | 857 |
863 // Indentation of parser trace. | 858 // Indentation of parser trace. |
864 intptr_t trace_indent_; | 859 intptr_t trace_indent_; |
865 | 860 |
866 DISALLOW_COPY_AND_ASSIGN(Parser); | 861 DISALLOW_COPY_AND_ASSIGN(Parser); |
867 }; | 862 }; |
868 | 863 |
869 } // namespace dart | 864 } // namespace dart |
870 | 865 |
871 #endif // VM_PARSER_H_ | 866 #endif // VM_PARSER_H_ |
OLD | NEW |