Skip to content

NFC: Hoist queries for unavailable decl optimizations into the AST library #67761

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
merged 1 commit into from
Aug 6, 2023

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Aug 5, 2023

Moving the query implementation up to the AST library from SIL will allow conveniences to be written on specific AST element classes. For instance, this will allow EnumDecl to expose a convenience that enumerates element decls that are available during lowering.

Also, improve naming and documentation for these queries.

…brary.

Moving the query implementation up to the AST library from SIL will allow
conveniences to be written on specific AST element classes. For instance, this
will allow `EnumDecl` to expose a convenience that enumerates element decls
that are available during lowering.

Also, improve naming and documentation for these queries.
@tshortli
Copy link
Contributor Author

tshortli commented Aug 5, 2023

@swift-ci please smoke test

@tshortli tshortli merged commit cb7982d into swiftlang:main Aug 6, 2023
@tshortli tshortli deleted the ast-unavailable-decl-queries branch August 6, 2023 17:01
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.

1 participant