Add keep annotation to Locale.toString (#17376)

This commit is contained in:
Dan Field 2020-03-27 15:24:54 -07:00 committed by GitHub
parent 3ee9e3d378
commit 4affba4fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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';