From 4affba4fec83ca1ebd082b8dd5823ffd98b203b9 Mon Sep 17 00:00:00 2001 From: Dan Field Date: Fri, 27 Mar 2020 15:24:54 -0700 Subject: [PATCH] Add keep annotation to Locale.toString (#17376) --- lib/ui/window.dart | 1 + testing/dart/window_hooks_integration_test.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/ui/window.dart b/lib/ui/window.dart index 1c9399b670e..d03ece63283 100644 --- a/lib/ui/window.dart +++ b/lib/ui/window.dart @@ -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)) { diff --git a/testing/dart/window_hooks_integration_test.dart b/testing/dart/window_hooks_integration_test.dart index 64fd956f196..17c1bf90890 100644 --- a/testing/dart/window_hooks_integration_test.dart +++ b/testing/dart/window_hooks_integration_test.dart @@ -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';