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

Unified Diff: runtime/lib/invocation_mirror_patch.dart

Issue 11231074: Change signature of noSuchMethod to take an InvocationMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: One more test expectation Created 8 years, 2 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
« no previous file with comments | « pkg/unittest/mock.dart ('k') | runtime/lib/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/invocation_mirror_patch.dart
diff --git a/runtime/lib/invocation_mirror_patch.dart b/runtime/lib/invocation_mirror_patch.dart
index 5bf4e42e2c29a63de5f3b17bd4482ce5e4d43b48..5eedca095075c9ec67b08efe4aa54e87e865e010 100644
--- a/runtime/lib/invocation_mirror_patch.dart
+++ b/runtime/lib/invocation_mirror_patch.dart
@@ -7,13 +7,17 @@ class _InvocationMirror implements InvocationMirror {
static final int GETTER = 1;
static final int SETTER = 2;
- final String methodName;
+ final String memberName;
final List positionalArguments;
final Map<String,dynamic> namedArguments = null;
final int _type;
- _InvocationMirror(this.methodName, this._type, this.positionalArguments);
+ _InvocationMirror(this.memberName, this._type, this.positionalArguments);
+
+ static _allocateInvocationMirror(name, arguments) {
+ return new _InvocationMirror(name, METHOD, arguments);
+ }
bool get isMethod => _type == METHOD;
bool get isAccessor => _type != METHOD;
« no previous file with comments | « pkg/unittest/mock.dart ('k') | runtime/lib/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698