Skip to content

[CSClosure] (Mostly NFC) Renames and introduction of AnyFunctionRef #58423

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
Apr 27, 2022

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Apr 26, 2022

This is one more step toward type-checking result builder bodies using conjunctions.

The changes rename ClosureBodyElement to SyntacticElement to indicate that
contained element could come from not just closure but a function body as well.

Both constraint generator and solution application walkers have been renamed as well,
and switched to use AnyFunctionRef instead of ClosureExpr.

xedin added 3 commits April 26, 2022 09:55
`SyntacticElement` represents a statement, pattern, declaration,
condition, or expression and could originate from i.e. a closure,
a function or a result builder body.
…ctionRef`

Closure constraint generator has been renamed to `SyntacticElementGenerator`
and can now handle both closure and function bodies.
…ctionRef`

Closure solution application has been renamed to `SyntacticElementSolutionApplication`
and can now handle both closure and function bodies.
@xedin xedin requested a review from hborla April 26, 2022 21:01
@xedin
Copy link
Contributor Author

xedin commented Apr 26, 2022

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Apr 26, 2022

@swift-ci please smoke test macOS platform

@xedin xedin merged commit d346977 into swiftlang:main Apr 27, 2022
xedin added a commit to xedin/swift that referenced this pull request Jun 3, 2022
Cherry-pick of swiftlang#58423

This is one more step toward type-checking result builder bodies using conjunctions.

The changes rename `ClosureBodyElement` to `SyntacticElement` to indicate that
contained element could come from not just closure but a function body as well.

Both constraint generator and solution application walkers have been renamed as well,
and switched to use `AnyFunctionRef` instead of `ClosureExpr`.
xedin added a commit to xedin/swift that referenced this pull request Jun 3, 2022
Cherry-pick of swiftlang#58423

The changes rename `ClosureBodyElement` to `SyntacticElement` to indicate that
contained element could come from not just closure but a function body as well.

Both constraint generator and solution application walkers have been renamed as well,
and switched to use `AnyFunctionRef` instead of `ClosureExpr`.
xedin added a commit to xedin/swift that referenced this pull request Jun 3, 2022
Cherry-pick of swiftlang#58423

The changes rename `ClosureBodyElement` to `SyntacticElement` to indicate that
contained element could come from not just closure but a function body as well.

Both constraint generator and solution application walkers have been renamed as well,
and switched to use `AnyFunctionRef` instead of `ClosureExpr`.
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.

2 participants