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

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

Issue 9316100: Fix for issue 1307: throw runtime exception instead of reporting a compile time error if a static... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 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/parser.cc ('k') | runtime/vm/resolver.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_RESOLVER_H_ 5 #ifndef VM_RESOLVER_H_
6 #define VM_RESOLVER_H_ 6 #define VM_RESOLVER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // Otherwise null is returned if the number or names of arguments are not 46 // Otherwise null is returned if the number or names of arguments are not
47 // valid for the resolved function. 47 // valid for the resolved function.
48 static RawFunction* ResolveStatic(const Library& library, 48 static RawFunction* ResolveStatic(const Library& library,
49 const String& cls_name, 49 const String& cls_name,
50 const String& function_name, 50 const String& function_name,
51 int num_arguments, 51 int num_arguments,
52 const Array& argument_names, 52 const Array& argument_names,
53 StaticResolveType resolve_type); 53 StaticResolveType resolve_type);
54 54
55 // Resolve specified dart static function. 55 // Resolve specified dart static function.
56 static RawFunction* ResolveStaticByName(const Class& cls,
57 const String& function_name,
58 StaticResolveType resolve_type);
59
60 // Resolve specified dart static function with specified arity.
56 static RawFunction* ResolveStatic(const Class& cls, 61 static RawFunction* ResolveStatic(const Class& cls,
57 const String& function_name, 62 const String& function_name,
58 int num_arguments, 63 int num_arguments,
59 const Array& argument_names, 64 const Array& argument_names,
60 StaticResolveType resolve_type); 65 StaticResolveType resolve_type);
61 }; 66 };
62 67
63 } // namespace dart 68 } // namespace dart
64 69
65 #endif // VM_RESOLVER_H_ 70 #endif // VM_RESOLVER_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698