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

Unified Diff: pkg/third_party/html5lib/lib/src/css_class_set.dart

Issue 288103003: Change Set.toSet to always return a set with the same behavior. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change .clone() to use .toSet(). Update docs. Created 6 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
Index: pkg/third_party/html5lib/lib/src/css_class_set.dart
diff --git a/pkg/third_party/html5lib/lib/src/css_class_set.dart b/pkg/third_party/html5lib/lib/src/css_class_set.dart
index 03136a7877f139a3a6da0b88cef1f32905ab7447..daf29765730086076fdf5a25c6d18d7272daadee 100644
--- a/pkg/third_party/html5lib/lib/src/css_class_set.dart
+++ b/pkg/third_party/html5lib/lib/src/css_class_set.dart
@@ -279,6 +279,8 @@ abstract class CssClassSetImpl implements CssClassSet {
Set<String> difference(Set<String> other) =>
readClasses().difference(other);
+ Set<E> cloneEmpty() => new LinkedHashSet<String>();
Lasse Reichstein Nielsen 2014/05/19 07:30:05 @jmesserly: What does it mean that this is in pkg/
Jennifer Messerly 2014/05/19 17:44:42 it means it's under a different license (MIT) and
+
String get first => readClasses().first;
String get last => readClasses().last;
String get single => readClasses().single;
« no previous file with comments | « pkg/collection/test/wrapper_test.dart ('k') | sdk/lib/_internal/compiler/implementation/helpers/expensive_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698