Chromium Code Reviews| 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 /** | 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 Loading... | |
| 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; | |
| OLD | NEW |