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

Unified Diff: tool/input_sdk/lib/core/iterable.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/convert/chunked_conversion.dart ('k') | tool/input_sdk/lib/core/set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/lib/core/iterable.dart
diff --git a/tool/input_sdk/lib/core/iterable.dart b/tool/input_sdk/lib/core/iterable.dart
index d4f482b7ef2b3a23016e9fb5f3d943b6a6244c28..fd95c799d86a8846fa986e12e388b44109e03116 100644
--- a/tool/input_sdk/lib/core/iterable.dart
+++ b/tool/input_sdk/lib/core/iterable.dart
@@ -72,7 +72,7 @@ abstract class Iterable<E> {
* multiple times over the the returned [Iterable] will invoke the supplied
* function [f] multiple times on the same element.
*/
- Iterable map(f(E element));
+ Iterable/*<T>*/ map/*<T>*/(/*=T*/ f(E element));
/**
* Returns a new lazy [Iterable] with all elements that satisfy the
@@ -95,7 +95,7 @@ abstract class Iterable<E> {
* The returned [Iterable] is lazy, and calls [f] for each element
* of this every time it's iterated.
*/
- Iterable expand(Iterable f(E element));
+ Iterable/*<T>*/ expand/*<T>*/(Iterable/*<T>*/ f(E element));
/**
* Returns true if the collection contains an element equal to [element].
@@ -138,8 +138,8 @@ abstract class Iterable<E> {
* iterable.fold(0, (prev, element) => prev + element);
*
*/
- dynamic fold(var initialValue,
- dynamic combine(var previousValue, E element));
+ dynamic/*=T*/ fold/*<T>*/(var/*=T*/ initialValue,
+ dynamic/*=T*/ combine(var/*=T*/ previousValue, E element));
/**
* Returns true if every elements of this collection satisify the
« no previous file with comments | « tool/input_sdk/lib/convert/chunked_conversion.dart ('k') | tool/input_sdk/lib/core/set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698