Skip to content

Conversation

@jPaolantonio
Copy link
Contributor

@jPaolantonio jPaolantonio commented Dec 8, 2022

Add extraction for computed variables in extensions.

@jPaolantonio
Copy link
Contributor Author

@swift-ci test

Copy link
Contributor

@artemcm artemcm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. Thanks @jPaolantonio !

Copy link
Contributor

@quinntaylor quinntaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! For completeness, it might also be good to add more properties declared in the extension that will resolve to valueKind other than Runtime.

@jPaolantonio
Copy link
Contributor Author

Looks great! For completeness, it might also be good to add more properties declared in the extension that will resolve to valueKind other than Runtime.

I agree. Ideally, that Runtime should also be statically extractable. We do not currently support extracting out InitValues from computed properties. Will fix.

@jPaolantonio jPaolantonio merged commit 186e55f into swiftlang:main Dec 9, 2022
@jPaolantonio jPaolantonio deleted the const-extract-extension-computed-vars branch December 9, 2022 13:13
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.

3 participants