Skip to content

Rewrite UnusedDeclarationsAnalyzer logic#2914

Merged
KevinRansom merged 1 commit intodotnet:masterfrom
vasily-kirichenko:fix-unused-declarations-analyzer-2
Apr 26, 2017
Merged

Rewrite UnusedDeclarationsAnalyzer logic#2914
KevinRansom merged 1 commit intodotnet:masterfrom
vasily-kirichenko:fix-unused-declarations-analyzer-2

Conversation

@vasily-kirichenko
Copy link
Contributor

@vasily-kirichenko vasily-kirichenko commented Apr 25, 2017

This fixes #2912

It contains a large chunk of commented code, I'd like to keep it for some time for debug purposes.

Copy link
Contributor

@cartermp cartermp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo a stylistic nitpick

let definitions =
symbolsUses
|> Array.filter (fun su ->
su.IsFromDefinition &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: this boolean logic might be best tucked away in a function isValidForUnusedDeclaration to ease readability

@KevinRansom KevinRansom merged commit ac000a0 into dotnet:master Apr 26, 2017
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace Unused suggestion causes code to not compile

4 participants