| OLD | NEW |
| 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 part of dart.core; | 5 part of dart.core; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Representation of the invocation of a member on an object. | 8 * Representation of the invocation of a member on an object. |
| 9 * | 9 * |
| 10 * This is the type of objects passed to [Object.noSuchMethod] when | 10 * This is the type of objects passed to [Object.noSuchMethod] when |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 /** | 33 /** |
| 34 * Whether the invocation was a setter call. | 34 * Whether the invocation was a setter call. |
| 35 * | 35 * |
| 36 * If so, [arguments] will have exactly one positonal argument, | 36 * If so, [arguments] will have exactly one positonal argument, |
| 37 * and namedArguments will be null. | 37 * and namedArguments will be null. |
| 38 */ | 38 */ |
| 39 bool get isSetter; | 39 bool get isSetter; |
| 40 | 40 |
| 41 /** Whether the invocation was a getter or a setter call. */ | 41 /** Whether the invocation was a getter or a setter call. */ |
| 42 bool get isAccessor => isGetter || isSetter; | 42 bool get isAccessor => isGetter || isSetter; |
| 43 | |
| 44 /** | |
| 45 * Perform the invocation on the provided object. | |
| 46 * | |
| 47 * If the object doesn't support the invocation, its [noSuchMethod] | |
| 48 * method will be called with either this [InvocationMirror] or another | |
| 49 * equivalent [InvocationMirror]. | |
| 50 */ | |
| 51 invokeOn(Object receiver); | |
| 52 } | 43 } |
| OLD | NEW |