Skip to content

[5.7-04182022] Remove SPI usage #419

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

natecook1000
Copy link
Member

This is a cherry pick of 5e34b84 and #417 to remove all usage of _RegexParser symbols in public _StringProcessing API. Resolves rdar://92876793.

natecook1000 and others added 2 commits May 16, 2022 13:57
This makes the changes necessary for _RegexParser to be imported as an
implementation-only dependency. The change provides _StringProcessing wrappers
for all `AST` types that need to be publicly visible via SPI, and a
DSLTree.Node wrapper for internal conformance to _TreeNode.

Co-authored-by: Richard Wei <[email protected]>
…tlang#417)

PatternConverter uses one last AST-based API defined in
_StringProcessing, which is technically not allowed but not
problematic b/c PatternConverter also imports _RegexParser.
However, this can have compile-time problems later on, so
this changes the entry point for PatternConverter to just use
an Any parameter that is checked at runtime to actually be AST.
@natecook1000 natecook1000 requested review from rxwei and nkcsgexi May 16, 2022 19:05
@natecook1000
Copy link
Member Author

@swift-ci Please test

@natecook1000 natecook1000 merged commit a892309 into swiftlang:swift/release/5.7-04182022 May 17, 2022
@natecook1000 natecook1000 deleted the 5.7-04182022/remove_spi_usage branch May 17, 2022 03:29
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