Commit fc6a839
Fix CS0168 warnings in generated code for unused explicitReader
Only declare the explicitReader variable in Decode methods when the type
actually has fields with explicit (non-implicit) context-specific tags.
Previously it was always declared, causing warnings for types like
KrbAlgorithmIdentifier, KrbSubjectPublicKeyInfo, GssapiToken, etc.
where all fields use implicit tags.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 6c29550 commit fc6a839
2 files changed
Lines changed: 8 additions & 2 deletions
File tree
- Tests/Tests.Asn1SourceGenerator
- Tools/Asn1SourceGenerator/Emit
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
501 | 507 | | |
502 | 508 | | |
503 | 509 | | |
| |||
0 commit comments