Skip to content

Commit

Permalink
Add keep annotation to Locale.toString (flutter#17376)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield authored Mar 27, 2020
1 parent 3ee9e3d commit 4affba4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ui/window.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
1 change: 1 addition & 0 deletions testing/dart/window_hooks_integration_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 4affba4

Please sign in to comment.