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

Unified Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 14049010: Take noSuchMethod into account when computing the potential targets of a call. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/mock_compiler.dart
===================================================================
--- tests/compiler/dart2js/mock_compiler.dart (revision 21607)
+++ tests/compiler/dart2js/mock_compiler.dart (working copy)
@@ -62,6 +62,7 @@
unwrapException(e) {}
assertHelper(a){}
createRuntimeType(a) {}
+ createInvocationMirror(a0, a1, a2, a3, a4, a5) {}
throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}
throwAbstractClassInstantiationError(className) {}''';
@@ -74,6 +75,7 @@
class Interceptor {
toString() {}
bool operator==(other) => identical(this, other);
+ noSuchMethod(im) { throw im; }
}
class JSIndexable {}
class JSArray extends Interceptor implements List, JSIndexable {
@@ -140,6 +142,7 @@
class Object {
operator ==(other) {}
String toString() { return null; }
+ noSuchMethod(im) { throw im; }
}
class Type {}
class Function {}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/world.dart ('k') | tests/compiler/dart2js/simple_inferrer_no_such_method_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698