Skip to content

Conversation

@Krzysztof-Cieslak
Copy link
Contributor

So this PR does 3 things:

  1. Adds IsPrivateToFile to FSharpSymbolUse - both for VS and FSAC we've been adding it as an extension, but since it's used in both places, I guess we may add it to the type directly
  2. Exposes simplify name analyzer
  3. Exposes unused declarations analyzer

In general, this PR will allow us to remove the whole bunch of code in FSAC that was copy-pasted from here.

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.

Thanks, this is great! Very happy to have these services/APIs exposed. Some changes are in order here though, since what I think was acceptable as a VFT internal isn't quite good enough for a public API. If you're willing to make those changes/discuss the suggestions then this is definitely mergeable since the actual implementations themselves are fine for exposure.

@Krzysztof-Cieslak
Copy link
Contributor Author

Updated according to the feedback

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.

Thanks, this is great.

@cartermp cartermp requested a review from TIHan January 20, 2020 19:44
@cartermp
Copy link
Contributor

@TIHan please review

Copy link
Contributor

@TIHan TIHan left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@cartermp
Copy link
Contributor

let's yeet this puppy into the codebase

@cartermp cartermp merged commit 1a695c9 into dotnet:master Jan 21, 2020
@Krzysztof-Cieslak Krzysztof-Cieslak deleted the expose-more-services branch January 22, 2020 00:21
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
* Expose simplify name analyzer

* Move IsPrivateToFile to the FSharpSymbolUse from extensions

* Expose Unused Declarations analyzer

* Update src/fsharp/symbols/Symbols.fsi

Co-Authored-By: Phillip Carter <[email protected]>

* Apply feedback

Co-authored-by: Phillip Carter <[email protected]>
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
* Expose simplify name analyzer

* Move IsPrivateToFile to the FSharpSymbolUse from extensions

* Expose Unused Declarations analyzer

* Update src/fsharp/symbols/Symbols.fsi

Co-Authored-By: Phillip Carter <[email protected]>

* Apply feedback

Co-authored-by: Phillip Carter <[email protected]>
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
* Expose simplify name analyzer

* Move IsPrivateToFile to the FSharpSymbolUse from extensions

* Expose Unused Declarations analyzer

* Update src/fsharp/symbols/Symbols.fsi

Co-Authored-By: Phillip Carter <[email protected]>

* Apply feedback

Co-authored-by: Phillip Carter <[email protected]>
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.

3 participants