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

Unified Diff: test/dart_codegen/expect/collection/hash_map.dart

Issue 959913003: cleanup patch generation to preseve comments and remove @patch (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/dart_codegen/expect/async/timer.dart ('k') | test/dart_codegen/expect/collection/hash_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/collection/hash_map.dart
diff --git a/test/dart_codegen/expect/collection/hash_map.dart b/test/dart_codegen/expect/collection/hash_map.dart
index 89e7ce423e81340ac8ec7c7f983a302b931fb527..dce0c7ced636f651fbbdd0c1c7780389b6ea356b 100644
--- a/test/dart_codegen/expect/collection/hash_map.dart
+++ b/test/dart_codegen/expect/collection/hash_map.dart
@@ -7,7 +7,7 @@ int _defaultHashCode(a) => DDC$RT.cast(a.hashCode, dynamic, int, "CastGeneral",
typedef bool _Equality<K>(K a, K b);
typedef int _Hasher<K>(K object);
abstract class HashMap<K, V> implements Map<K, V> {
- @patch factory HashMap({bool equals(K key1, K key2), int hashCode(K key),
+ factory HashMap({bool equals(K key1, K key2), int hashCode(K key),
bool isValidKey(potentialKey)}) {
if (isValidKey == null) {
if (hashCode == null) {
@@ -34,12 +34,12 @@ abstract class HashMap<K, V> implements Map<K, V> {
}
return new _CustomHashMap<K, V>(equals, hashCode, isValidKey);
}
- @patch factory HashMap.identity() = _IdentityHashMap<K, V>;
+ factory HashMap.identity() = _IdentityHashMap<K, V>;
factory HashMap.from(Map other) {
HashMap<K, V> result = new HashMap<K, V>();
other.forEach((k, v) {
result[k] = DDC$RT.cast(v, dynamic, V, "CastGeneral",
- """line 74, column 40 of dart:collection/hash_map.dart: """, v is V,
+ """line 112, column 40 of dart:collection/hash_map.dart: """, v is V,
false);
});
return result;
« no previous file with comments | « test/dart_codegen/expect/async/timer.dart ('k') | test/dart_codegen/expect/collection/hash_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698