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: tool/input_sdk/private/js_array.dart

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 | « tool/input_sdk/lib/math/math.dart ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/private/js_array.dart
diff --git a/tool/input_sdk/private/js_array.dart b/tool/input_sdk/private/js_array.dart
index 6fa2d331d54006db9312d7a7184dd1e695e5de5c..de54d2f047247b940716c5d341c5fe168b50ef69 100644
--- a/tool/input_sdk/private/js_array.dart
+++ b/tool/input_sdk/private/js_array.dart
@@ -26,7 +26,7 @@ class JSArray<E> implements List<E>, JSIndexable {
factory JSArray.markFixed(allocation) =>
new JSArray<E>.typed(markFixedList(allocation));
- factory JSArray.markGrowable(allocation) = JSArray.typed;
+ factory JSArray.markGrowable(allocation) = JSArray<E>.typed;
static List markFixedList(List list) {
// Functions are stored in the hidden class and not as properties in
@@ -105,7 +105,7 @@ class JSArray<E> implements List<E>, JSIndexable {
return new IterableMixinWorkaround<E>().where(this, f);
}
- Iterable expand(Iterable f(E element)) {
+ Iterable/*<T>*/ expand/*<T>*/(Iterable/*<E>*/ /*=Iterable<T>*/f(E element)) {
return IterableMixinWorkaround.expand(this, f);
}
@@ -129,7 +129,7 @@ class JSArray<E> implements List<E>, JSIndexable {
}
}
- Iterable map(f(E element)) {
+ Iterable/*<T>*/ map/*<T>*/(/*=T*/ f(E element)) {
return IterableMixinWorkaround.mapList(this, f);
}
@@ -161,7 +161,7 @@ class JSArray<E> implements List<E>, JSIndexable {
return IterableMixinWorkaround.reduce(this, combine);
}
- fold(initialValue, combine(previousValue, E element)) {
+ /*=T*/ fold/*<T>*/(/*=T*/ initialValue, /*=T*/ combine(/*=T*/ previousValue, E element)) {
return IterableMixinWorkaround.fold(this, initialValue, combine);
}
« no previous file with comments | « tool/input_sdk/lib/math/math.dart ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698