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

Unified Diff: pkg/intl/lib/intl.dart

Issue 11194025: Second round of cleanups for new optional parameter semantics. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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: pkg/intl/lib/intl.dart
===================================================================
--- pkg/intl/lib/intl.dart (revision 13754)
+++ pkg/intl/lib/intl.dart (working copy)
@@ -127,9 +127,9 @@
* will be extracted automatically but for the time being it must be passed
* explicitly in the [name] and [args] arguments.
*/
- static String message(String message_str, [final String desc='',
- final Map examples=const {}, String locale, String name,
- List<String> args]) {
+ static String message(String message_str, {final String desc: '',
+ final Map examples: const {}, String locale, String name,
+ List<String> args}) {
return messageLookup.lookupMessage(
message_str, desc, examples, locale, name, args);
}
@@ -159,7 +159,7 @@
* [newLocale] is null it will be returned.
*/
static String verifiedLocale(String newLocale, Function localeExists,
- [Function onFailure = _throwLocaleError]) {
+ {Function onFailure: _throwLocaleError}) {
// TODO(alanknight): Previously we kept a single verified locale on the Intl
// object, but with different verification for different uses, that's more
// difficult. As a result, we call this more often. Consider keeping

Powered by Google App Engine
This is Rietveld 408576698