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

Unified Diff: packages/intl/lib/date_symbol_data_file.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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: packages/intl/lib/date_symbol_data_file.dart
diff --git a/packages/intl/lib/date_symbol_data_file.dart b/packages/intl/lib/date_symbol_data_file.dart
index c1b5ea43072c3b29c51d040f57e166995a4723c1..dbb1dc051cd81906c079be4729ef8405fc5333bf 100644
--- a/packages/intl/lib/date_symbol_data_file.dart
+++ b/packages/intl/lib/date_symbol_data_file.dart
@@ -2,10 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/**
- * This file should be imported, along with date_format.dart in order to read
- * locale data from files in the file system.
- */
+/// This file should be imported, along with date_format.dart in order to read
+/// locale data from files in the file system.
library date_symbol_data_file;
@@ -21,12 +19,10 @@ import 'src/lazy_locale_data.dart';
export 'src/data/dates/locale_list.dart';
-/**
- * This should be called for at least one [locale] before any date formatting
- * methods are called. It sets up the lookup for date symbols using [path].
- * The [path] parameter should end with a directory separator appropriate
- * for the platform.
- */
+/// This should be called for at least one [locale] before any date formatting
+/// methods are called. It sets up the lookup for date symbols using [path].
+/// The [path] parameter should end with a directory separator appropriate
+/// for the platform.
Future initializeDateFormatting(String locale, String filePath) {
var reader = new FileDataReader(path.join(filePath, 'symbols'));
initializeDateSymbols(() => new LazyLocaleData(
@@ -35,11 +31,11 @@ Future initializeDateFormatting(String locale, String filePath) {
initializeDatePatterns(() =>
new LazyLocaleData(reader2, (x) => x, availableLocalesForDateFormatting));
return initializeIndividualLocaleDateFormatting((symbols, patterns) {
- return Future
- .wait([symbols.initLocale(locale), patterns.initLocale(locale)]);
+ return Future.wait(
+ <Future>[symbols.initLocale(locale), patterns.initLocale(locale)]);
});
}
-/** Defines how new date symbol entries are created. */
+/// Defines how new date symbol entries are created.
DateSymbols _createDateSymbol(Map map) =>
new DateSymbols.deserializeFromMap(map);
« no previous file with comments | « packages/intl/example/basic/messages_th_th.dart ('k') | packages/intl/lib/date_symbol_data_http_request.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698