Skip to content

Conversation

@kastiglione
Copy link
Contributor

The only state getSwiftName uses is its argument, and can be made a free function. Of note the inverse operation, getKnownFoundationEntity, is also a free function. This removes the requirement that callers have an ASTContext instance.

(cherry-picked from commit fb524c0)

The only state `getSwiftName` uses is its argument, and can be made a free function. Of
note the inverse operation, `getKnownFoundationEntity`, is also a free function. This
removes the requirement that callers have an `ASTContext` instance.

(cherry-picked from commit fb524c0)
@kastiglione
Copy link
Contributor Author

@swift-ci smoke test

@kastiglione kastiglione requested a review from shahmishal April 14, 2023 18:44
@kastiglione
Copy link
Contributor Author

@swift-ci test Windows Platform

1 similar comment
@kastiglione
Copy link
Contributor Author

@swift-ci test Windows Platform

@shahmishal shahmishal merged commit c1d5118 into main Apr 14, 2023
@shahmishal shahmishal deleted the dl/AST-Convert-ASTContext-getSwiftName-to-a-free-function branch April 14, 2023 20:52
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