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
18.87k stars 4.01k forks source link

Flag unused parameters of primary constructors #69762

Open mavasani opened 1 year ago

mavasani commented 1 year ago

Or actually just analyze the entire class to determine if the parameters are unused?

I am going to merge this PR to avoid this false positive. I'll file a separate feature request to consider adding functionality for flagging unused PC parameters.

Originally posted by @mavasani in https://github.com/dotnet/roslyn/issues/69748#issuecomment-1698470725

mavasani commented 1 year ago

@CyrusNajmabadi @akhera99