Fully annotate JsonNode for trimmability (#53184)
authorEric Erhardt <eric.erhardt@microsoft.com>
Wed, 2 Jun 2021 00:10:09 +0000 (19:10 -0500)
committerGitHub <noreply@github.com>
Wed, 2 Jun 2021 00:10:09 +0000 (19:10 -0500)
commit992e0495562d6aa4411914f166a7269ec46f5771
treef23de5a5712b088306f8971f3dbe56cfd28a3a6e
parentd3e35e7fd3dad543c275d1f1e10fc0ba91d70a15
Fully annotate JsonNode for trimmability (#53184)

Follow up to https://github.com/dotnet/runtime/pull/52934.

- Using JsonNode in dynamic statements is not trim compatible. Add a LibraryBuild warning since there isn't a direct API to put the warning on.
- Mark JsonValueNotTrimmable's ctor as unsafe
- Fix up a few warning messages
- minor doc fixup

Contributes to #45623
src/libraries/System.Text.Json/ref/System.Text.Json.cs
src/libraries/System.Text.Json/src/ILLink/ILLink.Suppressions.LibraryBuild.xml [new file with mode: 0644]
src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs
src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.Dynamic.cs
src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonObject.Dynamic.cs
src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonValue.CreateOverloads.cs
src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonValue.cs
src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonValueNotTrimmable.cs
src/libraries/System.Text.Json/src/System/Text/Json/Nodes/MetaDynamic.cs