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())); |
+} |