dotnet / dotnet/fsharp

Provide a way to check if FSharpSymbolUse is resolved from id

Open
#3,933 4 comments 0 reactions 0 assignees View on GitHub
Area-LangService-AutoComplete Feature Improvement
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

When getting symbol uses via `GetAllUsesOfAllSymbolsInFile()` there're plenty of uses that were added implicitly or were resolved from syntax construction other than name use.
Examples:
* definition of optional parameter adds uses of OptionalParameterAttribute and its namespaces
* use of indexer property with `.[ ... ]`

May `ItemOccurence` type be extended with these cases?

```fsharp
module ClassLibrary32

type T() =
member x.Opt(?p: int) = ()
```
screen shot 2017-11-12 at 15 22 46

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.