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

Unified Diff: pkg/intl/tool/generate_locale_data_files.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/test/intl_message_test.dart ('k') | pkg/oauth2/lib/src/authorization_code_grant.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/tool/generate_locale_data_files.dart
diff --git a/pkg/intl/tool/generate_locale_data_files.dart b/pkg/intl/tool/generate_locale_data_files.dart
index 81521f9559411ffe77d2589bf7252a0aa7509861..b9999265972d78ce1b191dd03b5689cd26dbb1e2 100644
--- a/pkg/intl/tool/generate_locale_data_files.dart
+++ b/pkg/intl/tool/generate_locale_data_files.dart
@@ -17,7 +17,7 @@ import '../lib/date_symbol_data_local.dart';
import '../lib/date_time_patterns.dart';
import '../lib/intl.dart';
import 'dart:io';
-import 'dart:json';
+import 'dart:json' as json;
import '../test/data_directory.dart';
main() {
@@ -68,10 +68,10 @@ void writeSymbols(locale, symbols) {
void writePatterns(locale, patterns) {
var file = new File('${dataDirectory}patterns/${locale}.json');
var outputStream = file.openOutputStream();
- outputStream.writeString(JSON.stringify(patterns));
+ outputStream.writeString(json.stringify(patterns));
outputStream.close();
}
void writeToJSON(dynamic data, OutputStream out) {
- out.writeString(JSON.stringify(data.serializeToMap()));
-}
+ out.writeString(json.stringify(data.serializeToMap()));
+}
« no previous file with comments | « pkg/intl/test/intl_message_test.dart ('k') | pkg/oauth2/lib/src/authorization_code_grant.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698