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.01k stars 4.03k forks source link

[Code refactor proposal] Split/merge multiple attributes into/from separate attribute lists #75411

Open Rekkonnect opened 2 weeks ago

Rekkonnect commented 2 weeks ago

Summary

Code refactors that convert between multiple attributes in a list and multiple attribute lists into a single attribute list

Details

The proposed refactors are the following:

Examples

[A, B, C, D(1), E]
[F]
[G, H]
public class C;

The proposed attribute list splitting refactoring will be available within each attribute list that contains more than one attributes, resulting in the following code:

For attribute merging, the inverse process will be applied.

balogun14 commented 2 weeks ago

@Rekkonnect can i work on this

Rekkonnect commented 2 weeks ago

Sure thing