dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.05k stars 4.04k forks source link

Tracking issue for analyzers/fixers to convert existing code to collection expressions. #69132

Closed CyrusNajmabadi closed 1 year ago

CyrusNajmabadi commented 1 year ago

Cases to support:

This will be a large set of work items. So i'm breaking things into pieces to make it easier to review. The pieces are at least:

Stretch cases:

The intent here is to also provide different diagnostic IDs for varying classes of these. For example "for arrays", "for spans", etc. We may want to revise this as appropriate as we continue with this.

Relates to test plan https://github.com/dotnet/roslyn/issues/66418 (collection expressions compiler feature)

CyrusNajmabadi commented 1 year ago

Closing out. This work item is complete. Further work can come in as bugs.