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

Unified Diff: lib/src/css_class_set.dart

Issue 2996603002: Update generic comment syntax (Closed)
Patch Set: Created 3 years, 4 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/dom.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/css_class_set.dart
diff --git a/lib/src/css_class_set.dart b/lib/src/css_class_set.dart
index ddc1612d4ecc256e7282604649962c1693cf7683..40575c2bb11e9dd395d7e6fa1eb1b13b33d895e3 100644
--- a/lib/src/css_class_set.dart
+++ b/lib/src/css_class_set.dart
@@ -6,6 +6,7 @@
library html.dom.src;
import 'dart:collection';
+
import 'package:html/dom.dart';
class ElementCssClassSet extends CssClassSetImpl {
@@ -33,7 +34,6 @@ class ElementCssClassSet extends CssClassSetImpl {
/** A Set that stores the CSS class names for an element. */
abstract class CssClassSet implements Set<String> {
-
/**
* Adds the class [value] to the element if it is not on it, removes it if it
* is.
@@ -151,11 +151,12 @@ abstract class CssClassSetImpl implements CssClassSet {
String join([String separator = ""]) => readClasses().join(separator);
- Iterable/*<T>*/ map/*<T>*/(/*=T*/ f(String e)) => readClasses().map(f);
+ Iterable<T> map<T>(T f(String e)) => readClasses().map(f);
Iterable<String> where(bool f(String element)) => readClasses().where(f);
- Iterable/*<T>*/ expand/*<T>*/(Iterable/*<T>*/ f(String element)) => readClasses().expand(f);
+ Iterable<T> expand<T>(Iterable<T> f(String element)) =>
+ readClasses().expand(f);
bool every(bool f(String element)) => readClasses().every(f);
@@ -171,8 +172,7 @@ abstract class CssClassSetImpl implements CssClassSet {
return readClasses().reduce(combine);
}
- dynamic/*=T*/ fold/*<T>*/(var/*=T*/ initialValue,
- dynamic/*=T*/ combine(var/*=T*/ previousValue, String element)) {
+ T fold<T>(T initialValue, T combine(T previousValue, String element)) {
return readClasses().fold(initialValue, combine);
}
// interface Collection - END
« no previous file with comments | « lib/dom.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698