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

Unified Diff: sdk/lib/html/html_common/css_class_set.dart

Issue 2885103005: Add dart:html and friends to patched_dart2js_sdk/platform.dill, also fix up (Closed)
Patch Set: v1 Created 3 years, 7 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/EventStreamProvider.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/html_common/css_class_set.dart
diff --git a/sdk/lib/html/html_common/css_class_set.dart b/sdk/lib/html/html_common/css_class_set.dart
index 61b9863c76e2268d4ceb791cf197647ef29df48e..11c35cbb927e65d91d00a5a7edae884d0f0ff67c 100644
--- a/sdk/lib/html/html_common/css_class_set.dart
+++ b/sdk/lib/html/html_common/css_class_set.dart
@@ -55,12 +55,12 @@ abstract class CssClassSetImpl implements CssClassSet {
String join([String separator = ""]) => readClasses().join(separator);
- Iterable/*<T>*/ map/*<T>*/(/*=T*/ f(String e)) => readClasses().map/*<T>*/(f);
+ Iterable<T> map<T>(T f(String e)) => readClasses().map<T>(f);
Iterable<String> where(bool f(String element)) => readClasses().where(f);
- Iterable/*<T>*/ expand/*<T>*/(Iterable/*<T>*/ f(String element)) =>
- readClasses().expand/*<T>*/(f);
+ Iterable<T> expand<T>(Iterable<T> f(String element)) =>
+ readClasses().expand<T>(f);
bool every(bool f(String element)) => readClasses().every(f);
@@ -76,9 +76,8 @@ abstract class CssClassSetImpl implements CssClassSet {
return readClasses().reduce(combine);
}
- dynamic/*=T*/ fold/*<T>*/(var/*=T*/ initialValue,
- dynamic/*=T*/ combine(var/*=T*/ previousValue, String element)) {
- return readClasses().fold/*<T>*/(initialValue, combine);
+ T fold<T>(T initialValue, T combine(T previousValue, String element)) {
+ return readClasses().fold<T>(initialValue, combine);
}
// interface Collection - END
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/EventStreamProvider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698