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