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

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
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 const String& func_name, 635 const String& func_name,
636 ArgumentListNode* arguments); 636 ArgumentListNode* arguments);
637 String& Interpolate(const GrowableArray<AstNode*>& values); 637 String& Interpolate(const GrowableArray<AstNode*>& values);
638 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); 638 AstNode* MakeAssertCall(intptr_t begin, intptr_t end);
639 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type); 639 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type);
640 AstNode* ThrowNoSuchMethodError(intptr_t call_pos, 640 AstNode* ThrowNoSuchMethodError(intptr_t call_pos,
641 const Class& cls, 641 const Class& cls,
642 const String& function_name, 642 const String& function_name,
643 ArgumentListNode* function_arguments, 643 ArgumentListNode* function_arguments,
644 InvocationMirror::Call call, 644 InvocationMirror::Call call,
645 InvocationMirror::Type type); 645 InvocationMirror::Type type,
646 Function* func);
646 647
647 void CheckOperatorArity(const MemberDesc& member); 648 void CheckOperatorArity(const MemberDesc& member);
648 649
649 void EnsureExpressionTemp(); 650 void EnsureExpressionTemp();
650 void EnsureSavedCurrentContext(); 651 void EnsureSavedCurrentContext();
651 AstNode* CreateAssignmentNode(AstNode* original, 652 AstNode* CreateAssignmentNode(AstNode* original,
652 AstNode* rhs, 653 AstNode* rhs,
653 const String* left_ident, 654 const String* left_ident,
654 intptr_t left_pos); 655 intptr_t left_pos);
655 AstNode* InsertClosureCallNodes(AstNode* condition); 656 AstNode* InsertClosureCallNodes(AstNode* condition);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 intptr_t last_used_try_index_; 714 intptr_t last_used_try_index_;
714 715
715 bool unregister_pending_function_; 716 bool unregister_pending_function_;
716 717
717 DISALLOW_COPY_AND_ASSIGN(Parser); 718 DISALLOW_COPY_AND_ASSIGN(Parser);
718 }; 719 };
719 720
720 } // namespace dart 721 } // namespace dart
721 722
722 #endif // VM_PARSER_H_ 723 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698