| 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 dart.core; |
| 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 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 * not necessarily identical, function values. | 61 * not necessarily identical, function values. |
| 62 * | 62 * |
| 63 * Function expressions never give rise to equal function objects. Each time | 63 * Function expressions never give rise to equal function objects. Each time |
| 64 * a function expression is evaluated, it creates a new closure value that | 64 * a function expression is evaluated, it creates a new closure value that |
| 65 * is not known to be equal to other closures created by the same expression. | 65 * is not known to be equal to other closures created by the same expression. |
| 66 * | 66 * |
| 67 * Classes implementing `Function` by having a `call` method should have their | 67 * Classes implementing `Function` by having a `call` method should have their |
| 68 * own `operator==` and `hashCode` depending on the object. | 68 * own `operator==` and `hashCode` depending on the object. |
| 69 */ | 69 */ |
| 70 bool operator==(Object other); | 70 bool operator==(Object other); |
| 71 |
| 72 static Map<String, dynamic> _toMangledNames( |
| 73 Map<Symbol, dynamic> namedArguments) { |
| 74 Map<String, dynamic> result = {}; |
| 75 namedArguments.forEach((symbol, value) { |
| 76 result[_symbolToString(symbol)] = value; |
| 77 }); |
| 78 return result; |
| 79 } |
| 71 } | 80 } |
| OLD | NEW |