Commit b2af65a
authored
Fix LoggerMessageGenerator parser to check for expression bodied method (#75601)
* Check for expression bodied method
Fixed LoggerMessageGenerator parser to check for expression bodied
method and generate a proper diagnostic message.
Fix #66080
* Fix expression body in test
Fixed invalid expression body in test1 parent 91706f1 commit b2af65a
File tree
2 files changed
+20
-2
lines changed- src/libraries/Microsoft.Extensions.Logging.Abstractions
- gen
- tests/Microsoft.Extensions.Logging.Generators.Tests
2 files changed
+20
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
| 252 | + | |
252 | 253 | | |
253 | | - | |
| 254 | + | |
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
83 | 100 | | |
84 | 101 | | |
85 | 102 | | |
| |||
0 commit comments