Commit 6d038c8
committed
[Serialization] Skip deserializing invalid attributes if allowing errors
Most invalid attributes are skipped from serialization entirely, but
custom attributes don't have their invalid bit set - the particular
custom attribute (eg. a property wrapper) is requested when needed and
skipped if invalid. Those checks can't set the invalid bit since the
attribute could be a different custom attribute (eg. a result builder).1 parent c490f92 commit 6d038c8
File tree
2 files changed
+17
-0
lines changed- lib/Serialization
- validation-test/Serialization/AllowErrors
2 files changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4505 | 4505 | | |
4506 | 4506 | | |
4507 | 4507 | | |
| 4508 | + | |
| 4509 | + | |
| 4510 | + | |
4508 | 4511 | | |
4509 | 4512 | | |
4510 | 4513 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments