-
Notifications
You must be signed in to change notification settings - Fork 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
Go To Definition should go to Deconstruct() in deconstructing assignments #16529
Comments
I might broaden this to include any sort of explicit conversion. It's a nice idea. |
Conversions are less obvious, because they aren't associated with the |
@SLaks Deconstruction doesn't always happen at the foreach (var (x, y) in e) // deconstruct on each element
var (x, (y, z)) = e; // nested deconstruction |
Good point. For |
Relates to #18963 (Find All References on Deconstruct method). |
When I press F12 on the
=
token in(a, b) = blah
(whereblah
has aDeconstruct()
), can you open theDeconstruct()
method?Just like F12 already opens operator overloads.
This would help people understand how tuples work in general, and would be quite helpful when navigating an unfamiliar codebase that uses custom deconstructable types.
The text was updated successfully, but these errors were encountered: