-
Notifications
You must be signed in to change notification settings - Fork 123
GetAllUsesOfAllSymbolsInFile returns wrong FSharpSymbolUse for extension properties #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
FCS returns correct results for extension members. This issue only occurs on extension properties. It might be an oversight due to FCS' recent changes in property handling. Please help us to fix this. |
Please tell us this can be fixed in theory. If not, we continue hacking our really ugly workaround. //cc @dsyme |
|
All this looks fixable, at least in theory :) |
If we are able to retrieve getter methods and setter methods from properties i.e. #191, it will make the weirdness of property symbols more tolerable. |
For code
CheckFileResults.GetAllUsesOfAllSymbolsInFile
returns the followingFSharpSymbolUse
forExtensionProperty
in the last line:The wrong things are:
FullName
is "System.String.ExtensionProperty" (instead of "SourceCodeClassifierTests.Module.ExtensionProperty" as it is for line 4, when it's defined)RangeAlternate
covers the property itself and "a long string" value altogether (instead of6, 24; 6, 41
it's6, 8; 6, 41
).All these blocks me to finish "Gray out unused open declaration" VFPT feature fsprojects-archive/zzarchive-VisualFSharpPowerTools#574 because I cannot determine that
open Module
is actually used by linelet _ = "a long string".ExtensionProperty
.The text was updated successfully, but these errors were encountered: