mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-09 09:34:49 +09:00
Add support for primary constructors in LoggerMessageGenerator (#101660)
* Add support for primary constructors in LoggerMessageGenerator * Get the primary constructor parameters types from the constructor symbol instead of from the semantic model * Prioritize fields over primary constructor parameters and ignore shadowed parameters when finding a logger * Make checking for primary constructors non-conditional on Roslyn version and simplify project setup * Reintroduce Roslyn 4.8 test project * Add info-level diagnostic for logger primary constructor parameters that are shadowed by field * Update list of diagnostics with new logging message generator diagnostic * Only add non-logger field names to set of shadowed names * Add comment explaining the use of the set of shadowed names with an example
This commit is contained in:
parent
0005249901
commit
9daa4b41eb
26 changed files with 533 additions and 33 deletions
|
@ -145,7 +145,7 @@ The diagnostic id values reserved for .NET Libraries analyzer warnings are `SYSL
|
|||
| __`SYSLIB1024`__ | Argument is using the unsupported out parameter modifier |
|
||||
| __`SYSLIB1025`__ | Multiple logging methods cannot use the same event name within a class |
|
||||
| __`SYSLIB1026`__ | C# language version not supported by the logging source generator. |
|
||||
| __`SYSLIB1027`__ | _`SYSLIB1001`-`SYSLIB1029` reserved for logging._ |
|
||||
| __`SYSLIB1027`__ | Primary constructor parameter of type Microsoft.Extensions.Logging.ILogger is hidden by a field |
|
||||
| __`SYSLIB1028`__ | _`SYSLIB1001`-`SYSLIB1029` reserved for logging._ |
|
||||
| __`SYSLIB1029`__ | _`SYSLIB1001`-`SYSLIB1029` reserved for logging._ |
|
||||
| __`SYSLIB1030`__ | JsonSourceGenerator did not generate serialization metadata for type |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue