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

Unified Diff: lib/html/templates/html/impl/impl_NodeList.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
Index: lib/html/templates/html/impl/impl_NodeList.darttemplate
diff --git a/lib/html/templates/html/impl/impl_NodeList.darttemplate b/lib/html/templates/html/impl/impl_NodeList.darttemplate
index cf0803489b51cf0d255af69cadaa1f7e0dc450dc..5e944540609b543377ed93a27dd72d4b3951cacb 100644
--- a/lib/html/templates/html/impl/impl_NodeList.darttemplate
+++ b/lib/html/templates/html/impl/impl_NodeList.darttemplate
@@ -50,7 +50,7 @@ class _ListWrapper<E> implements List<E> {
E removeLast() => _list.removeLast();
- E last() => _list.last();
+ E get last => _list.last;
List<E> getRange(int start, int rangeLength) =>
_list.getRange(start, rangeLength);
@@ -113,7 +113,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
}
_NodeImpl removeLast() {
- final result = this.last();
+ final result = this.last;
if (result != null) {
_parent.$dom_removeChild(result);
}
@@ -155,7 +155,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
int lastIndexOf(Node element, [int start = 0]) =>
_Lists.lastIndexOf(this, element, start);
- Node last() => this[length - 1];
+ Node get last => this[length - 1];
Node get first => this[0];
// FIXME: implement thesee.
« no previous file with comments | « lib/html/templates/html/impl/impl_Node.darttemplate ('k') | lib/html/templates/immutable_list_mixin.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698