No associated IFieldSymbol is provided for a field-like event #36259
Labels
Area-Compilers
Concept-API
This issue involves adding, removing, clarification, or modification of an API.
Feature Request
Milestone
If you create a compilation with the following syntax:
And you get the ITypeSymbol for the type declaration from the symbolic model, it contains an IFieldSymbol representing the backing field for the property but none for the backing field of the event:
Why is an associated IFieldSymbol surfaced for an autoprop but not an auto event?
Is there any chance that an associated IFieldSymbol might not be surfaced for an autoprop in some circumstances if I got the containing ITypeSymbol from a TypeDeclarationSyntax?
@CyrusNajmabadi reproduced this and asked me to file since this doesn't seem right to him.
roslyn/src/Compilers/Core/Portable/Symbols/IFieldSymbol.cs
Lines 17 to 24 in 611578d
roslyn/src/Compilers/CSharp/Portable/Symbols/Source/SourceFieldLikeEventSymbol.cs
Lines 74 to 80 in 611578d
The text was updated successfully, but these errors were encountered: