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

Unified Diff: tools/testing/dart/vendored_pkg/args/args.dart

Issue 12775010: Added the CanvasImageSource interface, which all types that a canvas can draw (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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/testing/dart/vendored_pkg/args/args.dart
diff --git a/tools/testing/dart/vendored_pkg/args/args.dart b/tools/testing/dart/vendored_pkg/args/args.dart
index 32793ddfc45be591c3383322dfcbbf1f2230ba39..29da1e262b840885b6d87c41474eec6aa6f0d418 100644
--- a/tools/testing/dart/vendored_pkg/args/args.dart
+++ b/tools/testing/dart/vendored_pkg/args/args.dart
@@ -331,7 +331,7 @@ class ArgParser {
* that abbreviation.
*/
Option findByAbbreviation(String abbr) {
- return options.values.firstWhere((option) => option.abbreviation == abbr,
+ return options.values.firstMatching((option) => option.abbreviation == abbr,
blois 2013/03/14 16:24:10 Shouldn't be checked in.
Andrei Mouravski 2013/03/15 00:08:52 Done.
orElse: () => null);
}
}

Powered by Google App Engine
This is Rietveld 408576698