Skip to content

Only get the associated symbol, not the containing symbol#64496

Merged
davidwengier merged 1 commit intodotnet:release/dev17.4from
davidwengier:FixFieldsInReplacedTypes
Oct 5, 2022
Merged

Only get the associated symbol, not the containing symbol#64496
davidwengier merged 1 commit intodotnet:release/dev17.4from
davidwengier:FixFieldsInReplacedTypes

Conversation

@davidwengier
Copy link
Member

@davidwengier davidwengier commented Oct 5, 2022

Fixes AB#1632487

We were incorrectly getting the containing symbol for a field, when we only actually want to get the associated symbol.

@davidwengier davidwengier requested a review from tmat October 5, 2022 03:15
@davidwengier davidwengier requested a review from a team as a code owner October 5, 2022 03:15
@ghost ghost added the Area-Interactive label Oct 5, 2022
return symbol;
}

private static ISymbol? GetAssociatedSymbol(ISymbol symbol)
Copy link
Member Author

Choose a reason for hiding this comment

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

The diff on this looks bigger than it is - GetAssociatedSymbol is just a straight "Extract Method" from the above

@davidwengier
Copy link
Member Author

FYI @arkalyanms for 17.4 PR

@tmat PTAL

Copy link
Member

@tmat tmat left a comment

Choose a reason for hiding this comment

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

:shipit:

@arunchndr
Copy link

@dotnet/roslyn-compiler for compiler signoffs.

@davidwengier
Copy link
Member Author

Thanks folks!

@davidwengier davidwengier merged commit 2c380b2 into dotnet:release/dev17.4 Oct 5, 2022
@davidwengier davidwengier deleted the FixFieldsInReplacedTypes branch October 5, 2022 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants