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

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

Issue 10977033: Cleanup the core/object.dart file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 /** 5 /**
6 * Everything in Dart is an [Object]. 6 * Everything in Dart is an [Object].
7 */ 7 */
8 class Object { 8 class Object {
9 /** 9 /**
10 * Creates a new [Object] instance. 10 * Creates a new [Object] instance.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 * invocation are passed to [noSuchMethod]. If [noSuchMethod] 51 * invocation are passed to [noSuchMethod]. If [noSuchMethod]
52 * returns a value, that value becomes the result of the original 52 * returns a value, that value becomes the result of the original
53 * invocation. 53 * invocation.
54 * 54 *
55 * The default behavior of [noSuchMethod] is to throw a 55 * The default behavior of [noSuchMethod] is to throw a
56 * [noSuchMethodError]. 56 * [noSuchMethodError].
57 */ 57 */
58 external Dynamic noSuchMethod(String name, List args); 58 external Dynamic noSuchMethod(String name, List args);
59 59
60 /** 60 /**
61 * Returns a representation of the runtime type of the object. 61 * A representation of the runtime type of the object.
62 */ 62 */
63 external Type runtimeType(); 63 external Type get runtimeType;
Ivan Posva 2012/09/27 00:02:14 Any particular reason why you did not have to upda
ngeoffray 2012/09/27 08:29:35 Right, thanks for noticing Ivan. The test was actu
64 } 64 }
65 65
66 /**
67 * Representation of a type.
68 */
69 abstract class Type {}
70
71 /**
72 * Check whether two references are to the same object.
73 */
74 bool identical(Object a, Object b) => a === b;
OLDNEW
« no previous file with comments | « lib/core/identical.dart ('k') | lib/core/type.dart » ('j') | lib/core/type.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698