Skip to content

[5.8][TypeChecker] Enable result builder AST transform by default #62809

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

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jan 3, 2023

Cherry-pick of #62734


This PR:

  • Drops experimental feature flag (ResultBuilderASTTransform)
  • Adjusts code completion (changes by @ahoppen)
  • Adjusts all the improved test-cases

Resolves: rdar://89880662
Resolves: rdar://97388257
Resolves: rdar://95235303
Resolves: rdar://96343005
Resolves: rdar://91731420
Resolves: rdar://95977761
Resolves: rdar://80680636

xedin and others added 7 commits January 3, 2023 01:01
…tements

Visiting of transformed `do` shouldn't run syntatic diagnostics because
they are going to be performed by `visit` that called `visitDoStmt`.

(cherry picked from commit 36a50c7)
…o retrieve contextual type

rdar://94224692
(cherry picked from commit c03addb)
…syntactic elements that don't contain completion token

(cherry picked from commit 3c90c89)
With AST transform enabled by default most of the previously
invalid declarations became valid (due to SE-0373 being implemented
only for AST transform).

(cherry picked from commit 1e6e6e9)
@xedin xedin added the r5.8 label Jan 3, 2023
@xedin xedin requested a review from hborla January 3, 2023 09:03
@xedin
Copy link
Contributor Author

xedin commented Jan 3, 2023

@swift-ci please test

`transformedBody` is available only if the flag is set, so there
is no reason to double-check it before application, the presence
of the transformed body is evidence enough.
@xedin
Copy link
Contributor Author

xedin commented Jan 3, 2023

@swift-ci please test

@xedin xedin merged commit 2c07057 into swiftlang:release/5.8 Jan 4, 2023
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.8 labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants