-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Fix #3031: emit sequence points for expression-bodied properties and indexers #3032
Fix #3031: emit sequence points for expression-bodied properties and indexers #3032
Conversation
Thank you for the proposed fix. If I remember correctly, There is one more nut I need to crack regarding local functions, but I might be able to get to that this week. Note that we intentionally do not use expression-bodied members for single accessors, but only for getter-only properties/indexers. Also note that my branch mentioned above fixes another issue in the getter-only transform. Thanks for creating a test case. I hope we'll be able to solve the PDB gen unit testing problem soon! |
I think I will be basing the fix on the changes in my branch and use as much as possible from this PR. There is no need for you to invest any more time. However, I would very grateful, if you could take my final solution for a test ride. Thank you very much! |
I have to retract this previous statement: the changes to |
fe508f7
to
7992d14
Compare
@KirillOsenkov I have pushed my changes. I have cleaned up the PR a bit. Could you try and test the generated PDB on your end? It seems to work fine with VS 17.6.4. Thanks a lot! |
Sorry, I should have clarified, I don't work on the Visual Studio debugger team and I am not using the pdb generation logic at all. I'm not using the DebugInfoGenerator for my purposes, I only use the SequencePointBuilder to get the raw sequence points. The changes in my PR are sufficient for my needs, however the VS debugger team is likely to need both your and my changes (I'm guessing). |
Other than the potential duplicate ILFunction annotations in CopyAnnotationsFrom, it looks good as far as I can see. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great as far as I can see. Thanks so much! 👍🏻
Thank you for your help with this! |
Need to visit properties and indexers in SequencePointBuilder to account for ExpressionBody.
Adds a failing test for all kinds of members. Currently failing with an unrelated duplicate sequence points for a local function body.