Skip to content

[AST] Convert ASTContext::getSwiftName to a free function #65194

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

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.

2 participants