Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: sdk/lib/core/expando.dart

Issue 2655883002: fix spelling in core libraries (Closed)
Patch Set: while I’m at it… Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sdk/lib/core/date_time.dart ('k') | sdk/lib/core/invocation.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 * 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 inacessible. 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
16 * number, it means that an expando property on a number could never be 16 * number, it means that an expando property on a number could never be
17 * released. To avoid this, expando properties cannot be added to numbers. 17 * released. To avoid this, expando properties cannot be added to numbers.
18 * The same argument applies to strings, booleans and null, which also have 18 * The same argument applies to strings, booleans and null, which also have
19 * literals that evaluate to identical values when they occur more than once. 19 * literals that evaluate to identical values when they occur more than once.
20 * 20 *
21 * There is no restriction on other classes, even for compile time constant 21 * There is no restriction on other classes, even for compile time constant
22 * objects. Be careful if adding expando properties to compile time constants, 22 * objects. Be careful if adding expando properties to compile time constants,
23 * since they will stay alive forever. 23 * since they will stay alive forever.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 /** 55 /**
56 * Sets the value of this [Expando]'s property on the given 56 * Sets the value of this [Expando]'s property on the given
57 * object. Properties can effectively be removed again by setting 57 * object. Properties can effectively be removed again by setting
58 * their value to null. 58 * their value to null.
59 * 59 *
60 * The object must not be a number, a string, a boolean or null. 60 * The object must not be a number, a string, a boolean or null.
61 */ 61 */
62 external void operator []=(Object object, T value); 62 external void operator []=(Object object, T value);
63 63
64 } 64 }
OLDNEW
« no previous file with comments | « sdk/lib/core/date_time.dart ('k') | sdk/lib/core/invocation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698