| 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 * Everything in Dart is an [Object]. | 8 * Everything in Dart is an [Object]. |
| 9 */ | 9 */ |
| 10 class Object { | 10 class Object { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 external int get hashCode; | 43 external int get hashCode; |
| 44 | 44 |
| 45 /** | 45 /** |
| 46 * Returns a string representation of this object. | 46 * Returns a string representation of this object. |
| 47 */ | 47 */ |
| 48 external String toString(); | 48 external String toString(); |
| 49 | 49 |
| 50 /** | 50 /** |
| 51 * [noSuchMethod] is invoked when users invoke a non-existant method | 51 * [noSuchMethod] is invoked when users invoke a non-existant method |
| 52 * on an object. The name of the method and the arguments of the | 52 * on an object. The name of the method and the arguments of the |
| 53 * invocation are passed to [noSuchMethod] in an [InvocationMirror]. | 53 * invocation are passed to [noSuchMethod] in an [Invocation]. |
| 54 * If [noSuchMethod] returns a value, that value becomes the result of | 54 * If [noSuchMethod] returns a value, that value becomes the result of |
| 55 * the original invocation. | 55 * the original invocation. |
| 56 * | 56 * |
| 57 * The default behavior of [noSuchMethod] is to throw a | 57 * The default behavior of [noSuchMethod] is to throw a |
| 58 * [noSuchMethodError]. | 58 * [noSuchMethodError]. |
| 59 */ | 59 */ |
| 60 external dynamic noSuchMethod(InvocationMirror invocation); | 60 external dynamic noSuchMethod(Invocation invocation); |
| 61 | 61 |
| 62 /** | 62 /** |
| 63 * A representation of the runtime type of the object. | 63 * A representation of the runtime type of the object. |
| 64 */ | 64 */ |
| 65 external Type get runtimeType; | 65 external Type get runtimeType; |
| 66 } | 66 } |
| 67 | 67 |
| OLD | NEW |