Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Side by Side Diff: runtime/vm/parser.h

Issue 24395007: Improve NoSuchMethodError error messages (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 const String& func_name, 634 const String& func_name,
635 ArgumentListNode* arguments); 635 ArgumentListNode* arguments);
636 String& Interpolate(const GrowableArray<AstNode*>& values); 636 String& Interpolate(const GrowableArray<AstNode*>& values);
637 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); 637 AstNode* MakeAssertCall(intptr_t begin, intptr_t end);
638 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type); 638 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type);
639 AstNode* ThrowNoSuchMethodError(intptr_t call_pos, 639 AstNode* ThrowNoSuchMethodError(intptr_t call_pos,
640 const Class& cls, 640 const Class& cls,
641 const String& function_name, 641 const String& function_name,
642 ArgumentListNode* function_arguments, 642 ArgumentListNode* function_arguments,
643 InvocationMirror::Call call, 643 InvocationMirror::Call call,
644 InvocationMirror::Type type); 644 InvocationMirror::Type type,
645 Function* func);
645 646
646 void CheckOperatorArity(const MemberDesc& member); 647 void CheckOperatorArity(const MemberDesc& member);
647 648
648 void EnsureExpressionTemp(); 649 void EnsureExpressionTemp();
649 void EnsureSavedCurrentContext(); 650 void EnsureSavedCurrentContext();
650 AstNode* CreateAssignmentNode(AstNode* original, 651 AstNode* CreateAssignmentNode(AstNode* original,
651 AstNode* rhs, 652 AstNode* rhs,
652 const String* left_ident, 653 const String* left_ident,
653 intptr_t left_pos); 654 intptr_t left_pos);
654 AstNode* InsertClosureCallNodes(AstNode* condition); 655 AstNode* InsertClosureCallNodes(AstNode* condition);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 intptr_t last_used_try_index_; 713 intptr_t last_used_try_index_;
713 714
714 bool unregister_pending_function_; 715 bool unregister_pending_function_;
715 716
716 DISALLOW_COPY_AND_ASSIGN(Parser); 717 DISALLOW_COPY_AND_ASSIGN(Parser);
717 }; 718 };
718 719
719 } // namespace dart 720 } // namespace dart
720 721
721 #endif // VM_PARSER_H_ 722 #endif // VM_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698