Add keep annotation to Locale.toString (flutter/engine#17376)

This commit is contained in:
Dan Field
2020-03-27 15:24:54 -07:00
committed by GitHub
parent e7798e90f4
commit 229089d3c7
2 changed files with 2 additions and 0 deletions

View File

@@ -492,6 +492,7 @@ class Locale {
/// This identifier happens to be a valid Unicode Locale Identifier using
/// underscores as separator, however it is intended to be used for debugging
/// purposes only. For parseable results, use [toLanguageTag] instead.
@keepToString
@override
String toString() {
if (!identical(_cachedLocale, this)) {

View File

@@ -19,6 +19,7 @@ import 'dart:typed_data';
import 'package:test/test.dart';
// HACK: these parts are to get access to private functions tested here.
part '../../lib/ui/annotations.dart';
part '../../lib/ui/channel_buffers.dart';
part '../../lib/ui/compositing.dart';
part '../../lib/ui/geometry.dart';