Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@RikkiGibson
Copy link
Member

@RikkiGibson RikkiGibson commented Nov 5, 2025

Closes #80682

Additionally, I removed property BoundCapturedReceiverPlaceholder.LocalScopeDepth, because it should always be the same as _localScopeDepth, when the expression is visited in GetRefEscape/GetValEscape/CheckRefEscape/CheckValEscape. Essentially, that node is created and used temporarily while analyzing a call in this same pass, in order to signal that a ref to the receiver argument, is really to a temp in the current scope. There is no ability for the local scope depth to change in the middle of that.

@RikkiGibson RikkiGibson marked this pull request as ready for review November 7, 2025 22:27
@RikkiGibson RikkiGibson requested a review from a team as a code owner November 7, 2025 22:27
Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

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

LGTM (commit 10)

@RikkiGibson RikkiGibson requested a review from a team November 11, 2025 21:02
@RikkiGibson RikkiGibson merged commit ac9e209 into dotnet:main Nov 11, 2025
25 checks passed
@RikkiGibson RikkiGibson deleted the ref-safety-simplify branch November 11, 2025 22:43
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Nov 11, 2025
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.

Parameter escapeFrom in CheckValEscape()/CheckRefEscape() is confusing

3 participants