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

Unified Diff: lib/html/templates/immutable_list_mixin.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/immutable_list_mixin.darttemplate
diff --git a/lib/html/templates/immutable_list_mixin.darttemplate b/lib/html/templates/immutable_list_mixin.darttemplate
index ba0921836a17101f916c13a929a55affc9b3800e..74d5a4e6a604f3a959b9607a946912eee40c49b6 100644
--- a/lib/html/templates/immutable_list_mixin.darttemplate
+++ b/lib/html/templates/immutable_list_mixin.darttemplate
@@ -57,7 +57,7 @@ $endif
return _Lists.lastIndexOf(this, element, start);
}
- $E last() => this[length - 1];
+ $E get last => this[length - 1];
$E removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
« no previous file with comments | « lib/html/templates/html/impl/impl_NodeList.darttemplate ('k') | pkg/dartdoc/lib/src/markdown/block_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698