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

Unified Diff: lib/runtime/dart/convert.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
« no previous file with comments | « lib/runtime/dart/collection.js ('k') | lib/runtime/dart/core.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/convert.js
diff --git a/lib/runtime/dart/convert.js b/lib/runtime/dart/convert.js
index 2ffc7fb0cdee896785ba1c5547102f90084bc548..3d4fc9140b7b50b29d43fdaf0a18cd1cdeff8146 100644
--- a/lib/runtime/dart/convert.js
+++ b/lib/runtime/dart/convert.js
@@ -296,7 +296,7 @@ dart_library.library('dart/convert', null, /* Imports */[
ChunkedConversionSink() {
}
static withCallback(callback) {
- return new _SimpleCallbackSink(callback);
+ return new (_SimpleCallbackSink$(T))(callback);
}
}
ChunkedConversionSink[dart.implements] = () => [core.Sink$(T)];
@@ -1216,7 +1216,7 @@ dart_library.library('dart/convert', null, /* Imports */[
this.writeStringContent(key);
this.writeString('":');
this.writeObject(value);
- }).bind(this), dart.dynamic, [core.String, dart.dynamic]));
+ }).bind(this), dart.void, [core.String, core.Object]));
this.writeString('}');
}
}
@@ -1289,7 +1289,7 @@ dart_library.library('dart/convert', null, /* Imports */[
this.writeString('": ');
this.writeObject(value);
first = false;
- }).bind(this), dart.dynamic, [core.String, core.Object]));
+ }).bind(this), dart.void, [core.String, core.Object]));
this.writeString('\n');
this[_indentLevel] = dart.notNull(this[_indentLevel]) - 1;
this.writeIndentation(this[_indentLevel]);
@@ -2588,7 +2588,7 @@ dart_library.library('dart/convert', null, /* Imports */[
addAll(other) {
other.forEach(dart.fn(((key, value) => {
this.set(key, value);
- }).bind(this)));
+ }).bind(this), dart.void, [dart.dynamic, dart.dynamic]));
}
containsValue(value) {
if (dart.notNull(this[_isUpgraded])) return this[_upgradedMap].containsValue(value);
@@ -2738,10 +2738,10 @@ dart_library.library('dart/convert', null, /* Imports */[
return this[_parent].length;
}
elementAt(index) {
- return dart.notNull(this[_parent][_isUpgraded]) ? dart.as(this[_parent].keys[dartx.elementAt](index), core.String) : this[_parent][_computeKeys]()[dartx.get](index);
+ return dart.as(dart.notNull(this[_parent][_isUpgraded]) ? this[_parent].keys[dartx.elementAt](index) : this[_parent][_computeKeys]()[dartx.get](index), core.String);
}
get iterator() {
- return dart.notNull(this[_parent][_isUpgraded]) ? this[_parent].keys[dartx.iterator] : this[_parent][_computeKeys]()[dartx.iterator];
+ return dart.as(dart.notNull(this[_parent][_isUpgraded]) ? this[_parent].keys[dartx.iterator] : this[_parent][_computeKeys]()[dartx.iterator], core.Iterator);
}
contains(key) {
return this[_parent].containsKey(key);
« no previous file with comments | « lib/runtime/dart/collection.js ('k') | lib/runtime/dart/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698