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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 /** | 36 /** |
37 * Whether the invocation was a getter call. | 37 * Whether the invocation was a getter call. |
38 * If so, both types of arguments is empty. | 38 * If so, both types of arguments is empty. |
39 */ | 39 */ |
40 bool get isGetter; | 40 bool get isGetter; |
41 | 41 |
42 /** | 42 /** |
43 * Whether the invocation was a setter call. | 43 * Whether the invocation was a setter call. |
44 * | 44 * |
45 * If so, [arguments] has exactly one positonal argument, | 45 * If so, [arguments] has exactly one positional argument, |
46 * and [namedArguments] is empty. | 46 * and [namedArguments] is empty. |
47 */ | 47 */ |
48 bool get isSetter; | 48 bool get isSetter; |
49 | 49 |
50 /** Whether the invocation was a getter or a setter call. */ | 50 /** Whether the invocation was a getter or a setter call. */ |
51 bool get isAccessor => isGetter || isSetter; | 51 bool get isAccessor => isGetter || isSetter; |
52 } | 52 } |
OLD | NEW |