| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "core.dart"; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * The base class for all function types. | 8 * The base class for all function types. |
| 9 * | 9 * |
| 10 * A function value, or an instance of a class with a "call" method, is a | 10 * A function value, or an instance of a class with a "call" method, is a |
| 11 * subtype of a function type, and as such, a subtype of [Function]. | 11 * subtype of a function type, and as such, a subtype of [Function]. |
| 12 */ | 12 */ |
| 13 abstract class Function { | 13 abstract class Function { |
| 14 /** | 14 /** |
| 15 * Dynamically call [function] with the specified arguments. | 15 * Dynamically call [function] with the specified arguments. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 * | 57 * |
| 58 * Function expressions never give rise to equal function objects. Each time | 58 * Function expressions never give rise to equal function objects. Each time |
| 59 * a function expression is evaluated, it creates a new closure value that | 59 * a function expression is evaluated, it creates a new closure value that |
| 60 * is not known to be equal to other closures created by the same expression. | 60 * is not known to be equal to other closures created by the same expression. |
| 61 * | 61 * |
| 62 * Classes implementing `Function` by having a `call` method should have their | 62 * Classes implementing `Function` by having a `call` method should have their |
| 63 * own `operator==` and `hashCode` depending on the object. | 63 * own `operator==` and `hashCode` depending on the object. |
| 64 */ | 64 */ |
| 65 bool operator ==(Object other); | 65 bool operator ==(Object other); |
| 66 } | 66 } |
| OLD | NEW |