Closed MihaZupan closed 3 months ago
cc: @stephentoub
Attention: Patch coverage is 86.82171%
with 17 lines
in your changes are missing coverage. Please review.
Project coverage is 96.47%. Comparing base (
de3a920
) to head (3692f88
). Report is 1 commits behind head on main.
@dotnet/roslyn-analysis who would be the right person to review this one?
Followup after #6898 to add recognition for collection expression patterns as well.
Currently, if you write something like
you will be offered two fixers: one to replace
s_chars
withSearchValues.Create("aeiouA")
, and the other to replace the array creation with['a', 'e', 'i', 'o', 'u', 'A']
. If you accept the latter, you won't be offered theSearchValues
fixer anymore since we don't recognize the pattern.This PR adds recognition for patterns like