From 229089d3c7cd84dd9f3ff914a8f7d8350c333b61 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 (flutter/engine#17376) --- engine/src/flutter/lib/ui/window.dart | 1 + .../src/flutter/testing/dart/window_hooks_integration_test.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/engine/src/flutter/lib/ui/window.dart b/engine/src/flutter/lib/ui/window.dart index 1c9399b670..d03ece6328 100644 --- a/engine/src/flutter/lib/ui/window.dart +++ b/engine/src/flutter/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/engine/src/flutter/testing/dart/window_hooks_integration_test.dart b/engine/src/flutter/testing/dart/window_hooks_integration_test.dart index 64fd956f19..17c1bf9089 100644 --- a/engine/src/flutter/testing/dart/window_hooks_integration_test.dart +++ b/engine/src/flutter/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';