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

Side by Side Diff: pkg/intl/lib/src/intl_helpers.dart

Issue 22284003: pkg: analysis aided cleanup (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/intl/lib/number_format.dart ('k') | pkg/intl/test/find_default_locale_standalone_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * A library for general helper code associated with the intl library 6 * A library for general helper code associated with the intl library
7 * rather than confined to specific parts of it. 7 * rather than confined to specific parts of it.
8 */ 8 */
9 9
10 library intl_helpers; 10 library intl_helpers;
11 import '../date_symbols.dart';
12 11
13 import 'dart:async'; 12 import 'dart:async';
14 13
15 /** 14 /**
16 * This is used as a marker for a locale data map that hasn't been initialized, 15 * This is used as a marker for a locale data map that hasn't been initialized,
17 * and will throw an exception on any usage that isn't the fallback 16 * and will throw an exception on any usage that isn't the fallback
18 * patterns/symbols provided. 17 * patterns/symbols provided.
19 */ 18 */
20 class UninitializedLocaleData<F> { 19 class UninitializedLocaleData<F> {
21 final String message; 20 final String message;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 /** 62 /**
64 * Initialize the message lookup mechanism. This is for internal use only. 63 * Initialize the message lookup mechanism. This is for internal use only.
65 * User applications should import `message_lookup_by_library.dart` and call 64 * User applications should import `message_lookup_by_library.dart` and call
66 * `initializeMessages` 65 * `initializeMessages`
67 */ 66 */
68 void initializeInternalMessageLookup(Function lookupFunction) { 67 void initializeInternalMessageLookup(Function lookupFunction) {
69 if (messageLookup is UninitializedLocaleData) { 68 if (messageLookup is UninitializedLocaleData) {
70 messageLookup = lookupFunction(); 69 messageLookup = lookupFunction();
71 } 70 }
72 } 71 }
OLDNEW
« no previous file with comments | « pkg/intl/lib/number_format.dart ('k') | pkg/intl/test/find_default_locale_standalone_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698