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

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

Issue 23087004: Improve DartDocs for dart:core classes that may not be extended or implemented. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: use an abstract bool.toString() Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « sdk/lib/core/double.dart ('k') | sdk/lib/core/null.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 * Representation of Dart integers containing integer specific 8 * Representation of Dart integers containing integer specific
9 * operations and specialization of operations inherited from [num]. 9 * operations and specialization of operations inherited from [num].
10 * 10 *
11 * Integers can be arbitrarily large in Dart. 11 * Integers can be arbitrarily large in Dart.
12 * 12 *
13 * *Note however, that when compiling to JavaScript, integers are 13 * *Note however, that when compiling to JavaScript, integers are
14 * implemented as JavaScript numbers. When compiling to JavaScript, 14 * implemented as JavaScript numbers. When compiling to JavaScript,
15 * integers are therefore restricted to 53 significant bits because 15 * integers are therefore restricted to 53 significant bits because
16 * all JavaScript numbers are double-precision floating point 16 * all JavaScript numbers are double-precision floating point
17 * values. The behavior of the operators and methods in the [int] 17 * values. The behavior of the operators and methods in the [int]
18 * class therefore sometimes differs between the Dart VM and Dart code 18 * class therefore sometimes differs between the Dart VM and Dart code
19 * compiled to JavaScript.* 19 * compiled to JavaScript.*
20 *
21 * It is a compile-time error for a class to attempt to extend or implement int.
20 */ 22 */
21 abstract class int extends num { 23 abstract class int extends num {
22 /** The bit-wise and operator. */ 24 /** The bit-wise and operator. */
23 int operator &(int other); 25 int operator &(int other);
24 26
25 /** The bit-wise or operator. */ 27 /** The bit-wise or operator. */
26 int operator |(int other); 28 int operator |(int other);
27 29
28 /** The bit-wise xor operator. */ 30 /** The bit-wise xor operator. */
29 int operator ^(int other); 31 int operator ^(int other);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 * value is used instead. If no [onError] is provided, a [FormatException] 114 * value is used instead. If no [onError] is provided, a [FormatException]
113 * is thrown. 115 * is thrown.
114 * 116 *
115 * The [onError] function is only invoked if [source] is a [String]. It is 117 * The [onError] function is only invoked if [source] is a [String]. It is
116 * not invoked if the [source] is, for example, `null`. 118 * not invoked if the [source] is, for example, `null`.
117 */ 119 */
118 external static int parse(String source, 120 external static int parse(String source,
119 { int radix, 121 { int radix,
120 int onError(String source) }); 122 int onError(String source) });
121 } 123 }
OLDNEW
« no previous file with comments | « sdk/lib/core/double.dart ('k') | sdk/lib/core/null.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698