mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-09 09:34:49 +09:00
[System.Text.Json] Improve error handling of ref structs, including collection types with ref struct elements. (#106083)
* STJ-SG: tolerate ref struct members with JsonIgnore. * * Skip all ref like members and emit warnings. * Add detection for collections with ref struct elements. * Update src/libraries/System.Text.Json/gen/JsonSourceGenerator.Parser.cs Co-authored-by: David Cantú <dacantu@microsoft.com> * Update src/libraries/System.Text.Json/gen/JsonSourceGenerator.Parser.cs Co-authored-by: David Cantú <dacantu@microsoft.com> --------- Co-authored-by: David Cantú <dacantu@microsoft.com>
This commit is contained in:
parent
a38ed975d2
commit
c1ab6c5b25
24 changed files with 482 additions and 44 deletions
|
@ -263,7 +263,7 @@ The diagnostic id values reserved for .NET Libraries analyzer warnings are `SYSL
|
|||
| __`SYSLIB1222`__ | Constructor annotated with JsonConstructorAttribute is inaccessible. |
|
||||
| __`SYSLIB1223`__ | Attributes deriving from JsonConverterAttribute are not supported by the source generator. |
|
||||
| __`SYSLIB1224`__ | Types annotated with JsonSerializableAttribute must be classes deriving from JsonSerializerContext. |
|
||||
| __`SYSLIB1225`__ | *`SYSLIB1220`-`SYSLIB1229` reserved for System.Text.Json.SourceGeneration.* |
|
||||
| __`SYSLIB1225`__ | Type includes ref like property, field or constructor parameter. |
|
||||
| __`SYSLIB1226`__ | *`SYSLIB1220`-`SYSLIB1229` reserved for System.Text.Json.SourceGeneration.* |
|
||||
| __`SYSLIB1227`__ | *`SYSLIB1220`-`SYSLIB1229` reserved for System.Text.Json.SourceGeneration.* |
|
||||
| __`SYSLIB1228`__ | *`SYSLIB1220`-`SYSLIB1229` reserved for System.Text.Json.SourceGeneration.* |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue