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

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

Issue 12328019: - Improve the message for NoSuchMethodErrors that are (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 "vm/ast.h" 11 #include "vm/ast.h"
11 #include "vm/class_finalizer.h" 12 #include "vm/class_finalizer.h"
12 #include "vm/compiler_stats.h" 13 #include "vm/compiler_stats.h"
13 #include "vm/scanner.h" 14 #include "vm/scanner.h"
14 15
15 namespace dart { 16 namespace dart {
16 17
17 // Forward declarations. 18 // Forward declarations.
18 class Function; 19 class Function;
19 class Script; 20 class Script;
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 608
608 SequenceNode* MakeImplicitConstructor(const Function& func); 609 SequenceNode* MakeImplicitConstructor(const Function& func);
609 AstNode* MakeStaticCall(const String& cls_name, 610 AstNode* MakeStaticCall(const String& cls_name,
610 const String& func_name, 611 const String& func_name,
611 ArgumentListNode* arguments); 612 ArgumentListNode* arguments);
612 String& Interpolate(const GrowableArray<AstNode*>& values); 613 String& Interpolate(const GrowableArray<AstNode*>& values);
613 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); 614 AstNode* MakeAssertCall(intptr_t begin, intptr_t end);
614 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type); 615 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type);
615 AstNode* ThrowNoSuchMethodError(intptr_t call_pos, 616 AstNode* ThrowNoSuchMethodError(intptr_t call_pos,
616 const Class& cls, 617 const Class& cls,
617 const String& function_name); 618 const String& function_name,
619 InvocationMirror::Call call,
620 InvocationMirror::Type type);
618 621
619 void CheckOperatorArity(const MemberDesc& member); 622 void CheckOperatorArity(const MemberDesc& member);
620 623
621 const LocalVariable* GetIncrementTempLocal(); 624 const LocalVariable* GetIncrementTempLocal();
622 void EnsureExpressionTemp(); 625 void EnsureExpressionTemp();
623 void EnsureSavedCurrentContext(); 626 void EnsureSavedCurrentContext();
624 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs); 627 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs);
625 AstNode* InsertClosureCallNodes(AstNode* condition); 628 AstNode* InsertClosureCallNodes(AstNode* condition);
626 629
627 ConstructorCallNode* CreateConstructorCallNode( 630 ConstructorCallNode* CreateConstructorCallNode(
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 // code at all points in the try block where an exit from the block is 673 // code at all points in the try block where an exit from the block is
671 // done using 'return', 'break' or 'continue' statements. 674 // done using 'return', 'break' or 'continue' statements.
672 TryBlocks* try_blocks_list_; 675 TryBlocks* try_blocks_list_;
673 676
674 DISALLOW_COPY_AND_ASSIGN(Parser); 677 DISALLOW_COPY_AND_ASSIGN(Parser);
675 }; 678 };
676 679
677 } // namespace dart 680 } // namespace dart
678 681
679 #endif // VM_PARSER_H_ 682 #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