Skip to content
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

Caller argument expression #25680

Closed
BillWagner opened this issue Aug 17, 2021 · 2 comments · Fixed by #26782
Closed

Caller argument expression #25680

BillWagner opened this issue Aug 17, 2021 · 2 comments · Fixed by #26782
Assignees
Labels
🏁 Release: .NET 6 Issues and PRs for the .NET 6 release doc-enhancement Improve the current content [org][type][category] Pri1 High priority, do before Pri2 and Pri3

Comments

@BillWagner
Copy link
Member

BillWagner commented Aug 17, 2021

Feature proposal

This would aid in debugging and diagnostic scenarios. It would allow methods to capture the expression passed to a method for diagnostic purposes.

This should be updated in a few places:

  • Where diagnostics are covered
  • Attributes understood by the compiler.
  • nameof expressions should point to this new feature.
@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label Aug 17, 2021
@BillWagner BillWagner added 🏁 Release: .NET 6 Issues and PRs for the .NET 6 release Pri1 High priority, do before Pri2 and Pri3 and removed ⌚ Not Triaged Not triaged Pri3 labels Aug 17, 2021
@BillWagner BillWagner added the doc-enhancement Improve the current content [org][type][category] label Aug 17, 2021
@Youssef1313
Copy link
Member

Note: The feature was implemented for Visual Basic as well (currently it's hidden under a feature flag). As soon as the feature flag gets removed, it should be documented for VB.

@Youssef1313
Copy link
Member

VB feature flag is being removed in dotnet/roslyn#55841

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏁 Release: .NET 6 Issues and PRs for the .NET 6 release doc-enhancement Improve the current content [org][type][category] Pri1 High priority, do before Pri2 and Pri3
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants