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 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 ArgumentListNode* arguments); | 763 ArgumentListNode* arguments); |
764 String& Interpolate(const GrowableArray<AstNode*>& values); | 764 String& Interpolate(const GrowableArray<AstNode*>& values); |
765 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); | 765 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); |
766 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type); | 766 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type); |
767 AstNode* ThrowNoSuchMethodError(intptr_t call_pos, | 767 AstNode* ThrowNoSuchMethodError(intptr_t call_pos, |
768 const Class& cls, | 768 const Class& cls, |
769 const String& function_name, | 769 const String& function_name, |
770 ArgumentListNode* function_arguments, | 770 ArgumentListNode* function_arguments, |
771 InvocationMirror::Call call, | 771 InvocationMirror::Call call, |
772 InvocationMirror::Type type, | 772 InvocationMirror::Type type, |
773 const Function* func); | 773 const Function* func, |
| 774 const LibraryPrefix* prefix = NULL); |
774 | 775 |
775 void SetupSavedTryContext(LocalVariable* saved_try_context); | 776 void SetupSavedTryContext(LocalVariable* saved_try_context); |
776 | 777 |
777 void CheckOperatorArity(const MemberDesc& member); | 778 void CheckOperatorArity(const MemberDesc& member); |
778 | 779 |
779 void EnsureExpressionTemp(); | 780 void EnsureExpressionTemp(); |
780 bool IsLegalAssignableSyntax(AstNode* expr, intptr_t end_pos); | 781 bool IsLegalAssignableSyntax(AstNode* expr, intptr_t end_pos); |
781 AstNode* CreateAssignmentNode(AstNode* original, | 782 AstNode* CreateAssignmentNode(AstNode* original, |
782 AstNode* rhs, | 783 AstNode* rhs, |
783 const String* left_ident, | 784 const String* left_ident, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 | 862 |
862 // Indentation of parser trace. | 863 // Indentation of parser trace. |
863 intptr_t trace_indent_; | 864 intptr_t trace_indent_; |
864 | 865 |
865 DISALLOW_COPY_AND_ASSIGN(Parser); | 866 DISALLOW_COPY_AND_ASSIGN(Parser); |
866 }; | 867 }; |
867 | 868 |
868 } // namespace dart | 869 } // namespace dart |
869 | 870 |
870 #endif // VM_PARSER_H_ | 871 #endif // VM_PARSER_H_ |
OLD | NEW |