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

Unified Diff: pkg/unittest/mock.dart

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 | « pkg/intl/tool/generate_locale_data_files.dart ('k') | runtime/bin/buffer_list.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/mock.dart
diff --git a/pkg/unittest/mock.dart b/pkg/unittest/mock.dart
index 6edb0c8238152bf599b5020101df00330ee30cc7..5e31f0300b6e59a9eef2e2f8e5f101d0dd22ebab 100644
--- a/pkg/unittest/mock.dart
+++ b/pkg/unittest/mock.dart
@@ -370,7 +370,7 @@ class LogEntryList {
get first => (logs == null || logs.length == 0) ? null : logs[0];
/** Get the last entry, or null if no entries. */
- get last => (logs == null || logs.length == 0) ? null : logs.last();
+ get last => (logs == null || logs.length == 0) ? null : logs.last;
/** Creates a LogEntry predicate function from the argument. */
Function _makePredicate(arg) {
« no previous file with comments | « pkg/intl/tool/generate_locale_data_files.dart ('k') | runtime/bin/buffer_list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698