Skip to content

[BuilderTransform] Lift all restrictions from variable decls when AST… #60839

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 Aug 29, 2022

… transform is enabled

Result builders would be able to declare:

  • uninitialized variables
  • variables with property wrappers (with and without explicit initializer)
  • default initializable variables i.e. var x: Int?
  • computed variables
  • lazy variables

@xedin xedin requested a review from hborla August 29, 2022 22:30
@xedin
Copy link
Contributor Author

xedin commented Aug 29, 2022

I'll incorporate test into existing result builder test file once the AST transform is enabled by default.

@xedin
Copy link
Contributor Author

xedin commented Aug 29, 2022

@swift-ci please build toolchain

@xedin xedin force-pushed the lift-var-restrictions-in-result-builder-ast-transform branch from cb0825b to ce1ffd7 Compare August 30, 2022 07:21
@xedin
Copy link
Contributor Author

xedin commented Aug 30, 2022

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Aug 30, 2022

@swift-ci please build toolchain macOS platform

1 similar comment
@xedin
Copy link
Contributor Author

xedin commented Aug 31, 2022

@swift-ci please build toolchain macOS platform

@xedin xedin force-pushed the lift-var-restrictions-in-result-builder-ast-transform branch from 2b20de3 to f4bee50 Compare August 31, 2022 19:59
@xedin
Copy link
Contributor Author

xedin commented Aug 31, 2022

@swift-ci please build toolchain macOS platform

@xedin xedin force-pushed the lift-var-restrictions-in-result-builder-ast-transform branch from f4bee50 to b1c27cb Compare September 1, 2022 22:34
… transform is enabled

Result builders would be able to declare:
  - uninitialized variables
  - variables with property wrappers (with and without explicit initializer)
  - default initializable variables i.e. `var x: Int?`
  - computed variables
  - `lazy` variables
@xedin xedin force-pushed the lift-var-restrictions-in-result-builder-ast-transform branch 2 times, most recently from 8c45dd8 to 480bcca Compare October 6, 2022 19:00
@xedin xedin added the swift evolution approved Flag → feature: A feature that was approved through the Swift evolution process label Oct 28, 2022
@xedin
Copy link
Contributor Author

xedin commented Oct 28, 2022

SE-0373 has been approved, I'm going to land this PR.

@xedin
Copy link
Contributor Author

xedin commented Oct 28, 2022

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Oct 30, 2022

@swift-ci please test macOS platform

@xedin xedin merged commit 263026b into swiftlang:main Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
swift evolution approved Flag → feature: A feature that was approved through the Swift evolution process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants