Skip to content

[AST] Introduce Argument::implicitInOut #60438

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

Merged
merged 3 commits into from
Aug 13, 2022

Conversation

hamishknight
Copy link
Contributor

The first step on a long road towards removing InOutExpr/InOutType. Introduce Argument::implicitInOut, and use it to factor out InOutExpr creation for a bunch of code synthesis logic. This will eventually become Argument::inout and will just store the expression along with an "is inout" bit.

This conversion should already be handled by
`buildSelfReference`.
This will allow us to abstract away the creation
of InOutExpr for bits of code synthesis.
This allows us to more easily propagate inout
information to it, which will become a necessity
once InOutExpr is removed.
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit 7693167 into swiftlang:main Aug 13, 2022
@hamishknight hamishknight deleted the factor-in-factor-out branch August 13, 2022 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant