-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
IOperation API for declaration expressions #20798
Comments
We think these should be exposed as their own IOperation. However, if this is difficult to do because of how the bound nodes work, then let us know. We could decide that it's just too expensive and we can settle with just having ILocalReferenceExpressions with some sort of way to map from them to the declaration expression. |
@333fred can you verify if we did declarationExpression ? |
We settled on |
Dupe of #18303. |
how about tuples var (x, y) = (1, 2); scenario ? |
That was one of the tests I added. |
We need to add a separate IOperation API to represent declaration expressions, currently they get represented as ILocalReferenceExpressions. See #20749 (comment)
Examples:
M(out var x);
var (x, y) = (1, 2);
The text was updated successfully, but these errors were encountered: