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

Unified Diff: tools/dom/templates/html/impl/impl_Node.darttemplate

Issue 11817059: Fixes for a number of dart analyzer issues in dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Syncing to latest. Created 7 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
Index: tools/dom/templates/html/impl/impl_Node.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Node.darttemplate b/tools/dom/templates/html/impl/impl_Node.darttemplate
index 74fe51e4e4278c59a4ba3901de62bf0699c76982..d5749c68bd93b4fcb3c141cfa8160a0674ec9a05 100644
--- a/tools/dom/templates/html/impl/impl_Node.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Node.darttemplate
@@ -52,11 +52,11 @@ $else
$endif
Node min([int compare(Node a, Node b)]) {
- return _Collections.minInList(this, compare);
+ return Collections.min(this, compare);
}
Node max([int compare(Node a, Node b)]) {
- return _Collections.maxInList(this, compare);
+ return Collections.max(this, compare);
}
void add(Node value) {
@@ -125,6 +125,9 @@ $endif
bool any(bool f(Node element)) => Collections.any(this, f);
+ List<Node> toList() => new List<Node>.from(this);
+ Set<Node> toSet() => new Set<Node>.from(this);
+
bool get isEmpty => this.length == 0;
// From List<Node>:
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | tools/dom/templates/immutable_list_mixin.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698