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

Unified Diff: pkg/analysis_server/lib/src/collections.dart

Issue 2952233002: Fix hints and clean-up obsolete comment syntax (TBR) (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | pkg/analysis_server/lib/src/domain_analysis.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/collections.dart
diff --git a/pkg/analysis_server/lib/src/collections.dart b/pkg/analysis_server/lib/src/collections.dart
index 3a1c8fbfe1badf6731cc5569b65310f995c9b27d..6c88a0463a30e678781d0e90535c43ac9b3b8a84 100644
--- a/pkg/analysis_server/lib/src/collections.dart
+++ b/pkg/analysis_server/lib/src/collections.dart
@@ -7,19 +7,19 @@
*
* The returned iterable is a lazily-evaluated view on the input iterables.
*/
-Iterable/*<E>*/ concat/*<E>*/(Iterable<Iterable/*<E>*/ > iterables) =>
+Iterable<E> concat<E>(Iterable<Iterable<E>> iterables) =>
iterables.expand((x) => x);
/**
* Returns the concatenation of the input [iterables] as a [List].
*/
-List/*<E>*/ concatToList/*<E>*/(Iterable<Iterable/*<E>*/ > iterables) =>
+List<E> concatToList<E>(Iterable<Iterable<E>> iterables) =>
concat(iterables).toList();
/**
* Returns the given [list] if it is not empty, or `null` otherwise.
*/
-List/*<E>*/ nullIfEmpty/*<E>*/(List/*<E>*/ list) {
+List<E> nullIfEmpty<E>(List<E> list) {
if (list == null) {
return null;
}
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/domain_analysis.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698