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

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

Issue 2754013002: Format all dart: library files (Closed)
Patch Set: Created 3 years, 9 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
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 arbitrarily large integer. 8 * An arbitrarily large integer.
9 * 9 *
10 * **Note:** When compiling to JavaScript, integers are 10 * **Note:** When compiling to JavaScript, integers are
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 * to to throwing and then immediately catching the [FormatException]. 308 * to to throwing and then immediately catching the [FormatException].
309 * Example: 309 * Example:
310 * 310 *
311 * var value = int.parse(text, onError: (source) => null); 311 * var value = int.parse(text, onError: (source) => null);
312 * if (value == null) ... handle the problem 312 * if (value == null) ... handle the problem
313 * 313 *
314 * The [onError] function is only invoked if [source] is a [String]. It is 314 * The [onError] function is only invoked if [source] is a [String]. It is
315 * not invoked if the [source] is, for example, `null`. 315 * not invoked if the [source] is, for example, `null`.
316 */ 316 */
317 external static int parse(String source, 317 external static int parse(String source,
318 { int radix, 318 {int radix, int onError(String source)});
319 int onError(String source) });
320 } 319 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698