Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(776)

Side by Side Diff: test/generated_sdk/lib/core/function.dart

Issue 955513007: merge class extensions from patch files (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/generated_sdk/lib/core/expando.dart ('k') | test/generated_sdk/lib/core/string.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « test/generated_sdk/lib/core/expando.dart ('k') | test/generated_sdk/lib/core/string.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698