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

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

Issue 23522037: one-liners for the remaining top-50 dart:core classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: incorporate memfeedback Created 7 years, 3 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
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 * Everything in Dart is an [Object]. 8 * The base class for all Dart objects.
9 *
10 * Because Object is the root of the Dart class hierarchy,
Lasse Reichstein Nielsen 2016/08/31 18:57:36 `Object`
11 * every other Dart class is a subclass of Object.
12 *
13 * When you define a class, you should override [toString]
14 * to return a string describing an instance of that class.
15 * You might also need to define [hashCode] and [==], as described in the
16 * [Implementing map keys]
17 * (http://www.dartlang.org/docs/dart-up-and-running/contents/ch03.html#ch03-imp lementing-map-keys)
18 * section of the [library tour]
19 * (http://www.dartlang.org/docs/dart-up-and-running/contents/ch03.html).
9 */ 20 */
10 class Object { 21 class Object {
11 /** 22 /**
12 * Creates a new [Object] instance. 23 * Creates a new [Object] instance.
13 * 24 *
14 * [Object] instances have no meaningful state, and are only useful 25 * [Object] instances have no meaningful state, and are only useful
15 * through their identity. An [Object] instance is equal to itself 26 * through their identity. An [Object] instance is equal to itself
16 * only. 27 * only.
17 */ 28 */
18 const Object(); 29 const Object();
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 * [noSuchMethodError]. 88 * [noSuchMethodError].
78 */ 89 */
79 external dynamic noSuchMethod(Invocation invocation); 90 external dynamic noSuchMethod(Invocation invocation);
80 91
81 /** 92 /**
82 * A representation of the runtime type of the object. 93 * A representation of the runtime type of the object.
83 */ 94 */
84 external Type get runtimeType; 95 external Type get runtimeType;
85 } 96 }
86 97
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698