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

Unified Diff: test/codegen/expect/collection/src/canonicalized_map.js

Issue 1554683002: Update to latest analyzer (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 11 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
Index: test/codegen/expect/collection/src/canonicalized_map.js
diff --git a/test/codegen/expect/collection/src/canonicalized_map.js b/test/codegen/expect/collection/src/canonicalized_map.js
index 1150fd9ea84d54f507485546c64e7377cec00f0d..deeec99c8f503cb1b2c32d32139ceced7720e440 100644
--- a/test/codegen/expect/collection/src/canonicalized_map.js
+++ b/test/codegen/expect/collection/src/canonicalized_map.js
@@ -39,7 +39,7 @@ dart_library.library('collection/src/canonicalized_map', null, /* Imports */[
}
addAll(other) {
dart.as(other, core.Map$(K, V));
- other.forEach(dart.fn((key, value) => this.set(dart.as(key, K), dart.as(value, V))));
+ other.forEach(dart.fn((key, value) => this.set(key, value), V, [K, V]));
}
clear() {
this[_base].clear();
@@ -49,11 +49,11 @@ dart_library.library('collection/src/canonicalized_map', null, /* Imports */[
return this[_base].containsKey(dart.dcall(this[_canonicalize], key));
}
containsValue(value) {
- return this[_base].values[dartx.any](dart.fn(pair => dart.equals(dart.dload(pair, 'last'), value), core.bool, [dart.dynamic]));
+ return this[_base].values[dartx.any](dart.fn(pair => dart.equals(pair.last, value), core.bool, [utils.Pair$(K, V)]));
}
forEach(f) {
dart.as(f, dart.functionType(dart.void, [K, V]));
- this[_base].forEach(dart.fn((key, pair) => f(dart.as(dart.dload(pair, 'first'), K), dart.as(dart.dload(pair, 'last'), V)), dart.void, [dart.dynamic, dart.dynamic]));
+ this[_base].forEach(dart.fn((key, pair) => f(pair.first, pair.last), dart.void, [C, utils.Pair$(K, V)]));
}
get isEmpty() {
return this[_base].isEmpty;
@@ -62,7 +62,7 @@ dart_library.library('collection/src/canonicalized_map', null, /* Imports */[
return this[_base].isNotEmpty;
}
get keys() {
- return dart.as(this[_base].values[dartx.map](dart.fn(pair => dart.dload(pair, 'first'))), core.Iterable$(K));
+ return this[_base].values[dartx.map](dart.fn(pair => pair.first, K, [utils.Pair$(K, V)]));
}
get length() {
return this[_base].length;
@@ -78,7 +78,7 @@ dart_library.library('collection/src/canonicalized_map', null, /* Imports */[
return pair == null ? null : pair.last;
}
get values() {
- return dart.as(this[_base].values[dartx.map](dart.fn(pair => dart.dload(pair, 'last'))), core.Iterable$(V));
+ return this[_base].values[dartx.map](dart.fn(pair => pair.last, V, [utils.Pair$(K, V)]));
}
toString() {
return collection.Maps.mapToString(this);
« no previous file with comments | « test/codegen/expect/collection/priority_queue.txt ('k') | test/codegen/expect/collection/src/canonicalized_map.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698