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

Side by Side Diff: lib/core/invocation_mirror.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: Merged dart2js changes into this CL. Created 8 years, 1 month 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
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 /** 5 /**
6 * Representation of the invocation of a member on an object. 6 * Representation of the invocation of a member on an object.
7 * 7 *
8 * This is the type of objects passed to [Object.noSuchMethod] when 8 * This is the type of objects passed to [Object.noSuchMethod] when
9 * an object doesn't support the member invocation that was attempted 9 * an object doesn't support the member invocation that was attempted
10 * on it. 10 * on it.
11 */ 11 */
12 abstract class InvocationMirror { 12 abstract class InvocationMirror {
13 /** The name of the invoked member. */ 13 /** The name of the invoked member. */
14 String get memberName; 14 String get memberName;
15 15
16 /** An unmodifiable view of the positional arguments of the call. */ 16 /** An unmodifiable view of the positional arguments of the call. */
17 List get positionalArguments; 17 List get positionalArguments;
18 18
19 /** An unmodifiable view of the named arguments of the call. */ 19 /** An unmodifiable view of the named arguments of the call. */
20 Map<String, Dynamic> get namedArguments; 20 Map<String, dynamic> get namedArguments;
21 21
22 /** Whether the invocation was a method call. */ 22 /** Whether the invocation was a method call. */
23 bool get isMethod; 23 bool get isMethod;
24 24
25 /** 25 /**
26 * Whether the invocation was a getter call. 26 * Whether the invocation was a getter call.
27 * If so, both types of arguments will be null. 27 * If so, both types of arguments will be null.
28 */ 28 */
29 bool get isGetter; 29 bool get isGetter;
30 30
(...skipping 10 matching lines...) Expand all
41 41
42 /** 42 /**
43 * Perform the invocation on the provided object. 43 * Perform the invocation on the provided object.
44 * 44 *
45 * If the object doesn't support the invocation, its [noSuchMethod] 45 * If the object doesn't support the invocation, its [noSuchMethod]
46 * method will be called with either this [InvocationMirror] or another 46 * method will be called with either this [InvocationMirror] or another
47 * equivalent [InvocationMirror]. 47 * equivalent [InvocationMirror].
48 */ 48 */
49 invokeOn(Object receiver); 49 invokeOn(Object receiver);
50 } 50 }
OLDNEW
« lib/core/errors.dart ('K') | « lib/core/errors.dart ('k') | lib/core/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698