Skip to content

Commit

Permalink
Add jsonEncode for use in unreachable_from_main
Browse files Browse the repository at this point in the history
Bug: dart-lang/linter#4495
Change-Id: I74b0a6cb516d2850bb922005e463f58f58453b4f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/312280
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Samuel Rawlins <[email protected]>
  • Loading branch information
srawlins authored and Commit Queue committed Jul 4, 2023
1 parent 37003ee commit e67a219
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/analyzer/lib/src/test_utilities/mock_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ class JsonCodec {
abstract mixin class StringConversionSink { }
typedef StringConversionSinkMixin = StringConversionSink;
String jsonEncode(Object? object,
{Object? toEncodable(Object? nonEncodable)?}) => '';
''',
)
],
Expand Down

0 comments on commit e67a219

Please sign in to comment.