| OLD | NEW |
| 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 * The base class for all Dart objects. | 8 * The base class for all Dart objects. |
| 9 * | 9 * |
| 10 * Because Object is the root of the Dart class hierarchy, | 10 * Because Object is the root of the Dart class hierarchy, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 * equality operator as well to maintain consistency. | 71 * equality operator as well to maintain consistency. |
| 72 */ | 72 */ |
| 73 external int get hashCode; | 73 external int get hashCode; |
| 74 | 74 |
| 75 /** | 75 /** |
| 76 * Returns a string representation of this object. | 76 * Returns a string representation of this object. |
| 77 */ | 77 */ |
| 78 external String toString(); | 78 external String toString(); |
| 79 | 79 |
| 80 /** | 80 /** |
| 81 * [noSuchMethod] is invoked when users invoke a non-existant method | 81 * [noSuchMethod] is invoked when users invoke a non-existent method |
| 82 * on an object. The name of the method and the arguments of the | 82 * on an object. The name of the method and the arguments of the |
| 83 * invocation are passed to [noSuchMethod] in an [Invocation]. | 83 * invocation are passed to [noSuchMethod] in an [Invocation]. |
| 84 * If [noSuchMethod] returns a value, that value becomes the result of | 84 * If [noSuchMethod] returns a value, that value becomes the result of |
| 85 * the original invocation. | 85 * the original invocation. |
| 86 * | 86 * |
| 87 * The default behavior of [noSuchMethod] is to throw a | 87 * The default behavior of [noSuchMethod] is to throw a |
| 88 * [noSuchMethodError]. | 88 * [noSuchMethodError]. |
| 89 */ | 89 */ |
| 90 external dynamic noSuchMethod(Invocation invocation); | 90 external dynamic noSuchMethod(Invocation invocation); |
| 91 | 91 |
| 92 /** | 92 /** |
| 93 * A representation of the runtime type of the object. | 93 * A representation of the runtime type of the object. |
| 94 */ | 94 */ |
| 95 external Type get runtimeType; | 95 external Type get runtimeType; |
| 96 } | 96 } |
| 97 | 97 |
| OLD | NEW |