Roll engine to b6df7a637498ca9beda1fa9cd7210e3202ea599f. (#15444)
* Roll engine to b6df7a637498ca9beda1fa9cd7210e3202ea599f. Changes since last roll: ``` b6df7a637 Roll dart to 290c576264faa096a0b3206c71b2435309d9f904. (#4771) a6764dbd5 Add sources for Fuchsia target. (#4763) 2d5900615 [fuchsia] Remove unused header file. (#4769) 9717063b7 Revert "Roll dart to c080951d45e79cd25df98036c4be835b284a269c. (#4767)" (#4768) 9a9814312 Roll dart to c080951d45e79cd25df98036c4be835b284a269c. (#4767) e74e8b35c [async] Update includes of async headers to new path (#4760) e2c4b2760 Use Dart 2 camel case constants in the engine Dart libraries (#4766) 9c1e48434 Updates for Fuchsia roll. (#4765) 14c940e27 Switch from fxl::Mutex to std::mutex (#4764) debf82c0b Roll Garnet (#4759) 5bffdefbb Use weak pointers to the accesibility bridge from objects vended to the UIKit accessibility framework. (#4761) ```
This commit is contained in:
committed by
GitHub
parent
07eb5ea0be
commit
2f8474f9aa
@@ -340,7 +340,7 @@ void printStream(Stream<List<int>> stream, { String prefix: '', List<Pattern> fi
|
||||
assert(prefix != null);
|
||||
assert(filter != null);
|
||||
stream
|
||||
.transform(UTF8.decoder)
|
||||
.transform(utf8.decoder)
|
||||
.transform(const LineSplitter())
|
||||
.listen((String line) {
|
||||
if (!filter.any((Pattern pattern) => line.contains(pattern)))
|
||||
|
||||
@@ -85,7 +85,7 @@ Future<Null> main(List<String> rawArgs) async {
|
||||
buffer.writeln('const Map<String, dynamic> dateSymbols = const <String, dynamic> {');
|
||||
symbolFiles.forEach((String locale, File data) {
|
||||
if (materialLocales.contains(locale))
|
||||
buffer.writeln(_jsonToMapEntry(locale, JSON.decode(data.readAsStringSync())));
|
||||
buffer.writeln(_jsonToMapEntry(locale, json.decode(data.readAsStringSync())));
|
||||
});
|
||||
buffer.writeln('};');
|
||||
|
||||
@@ -94,7 +94,7 @@ Future<Null> main(List<String> rawArgs) async {
|
||||
buffer.writeln('const Map<String, Map<String, String>> datePatterns = const <String, Map<String, String>> {');
|
||||
patternFiles.forEach((String locale, File data) {
|
||||
if (materialLocales.contains(locale)) {
|
||||
final Map<String, dynamic> patterns = JSON.decode(data.readAsStringSync());
|
||||
final Map<String, dynamic> patterns = json.decode(data.readAsStringSync());
|
||||
buffer.writeln("'$locale': const <String, String>{");
|
||||
patterns.forEach((String key, dynamic value) {
|
||||
assert(value is String);
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
// dart dev/tools/gen_localizations.dart --overwrite
|
||||
// ```
|
||||
|
||||
import 'dart:convert' show JSON;
|
||||
import 'dart:convert' show json;
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:path/path.dart' as pathlib;
|
||||
@@ -234,7 +234,7 @@ void processBundle(File file, String locale) {
|
||||
localeToResourceAttributes[locale] ??= <String, dynamic>{};
|
||||
final Map<String, String> resources = localeToResources[locale];
|
||||
final Map<String, dynamic> attributes = localeToResourceAttributes[locale];
|
||||
final Map<String, dynamic> bundle = JSON.decode(file.readAsStringSync());
|
||||
final Map<String, dynamic> bundle = json.decode(file.readAsStringSync());
|
||||
for (String key in bundle.keys) {
|
||||
// The ARB file resource "attributes" for foo are called @foo.
|
||||
if (key.startsWith('@'))
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:convert' show JSON;
|
||||
import 'dart:convert' show json;
|
||||
import 'dart:io';
|
||||
|
||||
/// Sanity checking of the @foo metadata in the English translations,
|
||||
@@ -22,7 +22,7 @@ String validateEnglishLocalizations(File file) {
|
||||
return errorMessages.toString();
|
||||
}
|
||||
|
||||
final Map<String, dynamic> bundle = JSON.decode(file.readAsStringSync());
|
||||
final Map<String, dynamic> bundle = json.decode(file.readAsStringSync());
|
||||
for (String atResourceId in bundle.keys) {
|
||||
if (!atResourceId.startsWith('@'))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user