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

Unified Diff: lib/html/templates/html/impl/impl_DocumentFragment.darttemplate

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 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/html/scripts/idlrenderer.dart ('k') | lib/html/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
diff --git a/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate b/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
index 9cb9236b532cb9ce8debd856f7eb848dcbe96a06..a916bbf5a3665e67fc25bcdbd9c1408297621164 100644
--- a/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
+++ b/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
@@ -73,7 +73,7 @@ class _FilteredElementList implements List {
}
Element removeLast() {
- final result = this.last();
+ final result = this.last;
if (result != null) {
result.remove();
}
@@ -98,7 +98,7 @@ class _FilteredElementList implements List {
return _filtered.lastIndexOf(element, start);
}
- Element last() => _filtered.last();
+ Element get last => _filtered.last;
}
Future<CSSStyleDeclaration> _emptyStyleFuture() {
@@ -234,7 +234,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
}
return null;
}
- Element get $m_lastElementChild() => elements.last();
+ Element get $m_lastElementChild() => elements.last;
Element get nextElementSibling => null;
Element get previousElementSibling => null;
Element get offsetParent => null;
« no previous file with comments | « lib/html/scripts/idlrenderer.dart ('k') | lib/html/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698