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; | |
6 | |
7 /** | 5 /** |
8 * An [Expando] allows adding new properties to objects. | 6 * An [Expando] allows adding new properties to objects. |
9 */ | 7 */ |
10 class Expando<T> { | 8 class Expando<T> { |
11 | 9 |
12 /** | 10 /** |
13 * The name of the this [Expando] as passed to the constructor. If | 11 * The name of the this [Expando] as passed to the constructor. If |
14 * no name was passed to the constructor, the name is [null]. | 12 * no name was passed to the constructor, the name is [null]. |
15 */ | 13 */ |
16 final String name; | 14 final String name; |
(...skipping 19 matching lines...) Expand all Loading... |
36 external T operator [](Object object); | 34 external T operator [](Object object); |
37 | 35 |
38 /** | 36 /** |
39 * Sets the value of this [Expando]'s property on the given | 37 * Sets the value of this [Expando]'s property on the given |
40 * object. Properties can effectively be removed again by setting | 38 * object. Properties can effectively be removed again by setting |
41 * their value to null. | 39 * their value to null. |
42 */ | 40 */ |
43 external void operator []=(Object object, T value); | 41 external void operator []=(Object object, T value); |
44 | 42 |
45 } | 43 } |
OLD | NEW |