| 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 "core.dart"; | 5 part of "dart:core"; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * An [Expando] allows adding new properties to objects. | 8 * An [Expando] allows adding new properties to objects. |
| 9 * | 9 * |
| 10 * Does not work on numbers, strings, booleans or null. | 10 * Does not work on numbers, strings, booleans or null. |
| 11 * | 11 * |
| 12 * An `Expando` does not hold on to the added property value after an object | 12 * An `Expando` does not hold on to the added property value after an object |
| 13 * becomes inaccessible. | 13 * becomes inaccessible. |
| 14 * | 14 * |
| 15 * Since you can always create a new number that is identical to an existing | 15 * Since you can always create a new number that is identical to an existing |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 /** | 54 /** |
| 55 * Sets the value of this [Expando]'s property on the given | 55 * Sets the value of this [Expando]'s property on the given |
| 56 * object. Properties can effectively be removed again by setting | 56 * object. Properties can effectively be removed again by setting |
| 57 * their value to null. | 57 * their value to null. |
| 58 * | 58 * |
| 59 * The object must not be a number, a string, a boolean or null. | 59 * The object must not be a number, a string, a boolean or null. |
| 60 */ | 60 */ |
| 61 external void operator []=(Object object, T value); | 61 external void operator []=(Object object, T value); |
| 62 } | 62 } |
| OLD | NEW |