Skip to content

Implement extractInlinableText with swift-syntax #76187

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

DougGregor
Copy link
Member

@DougGregor DougGregor commented Aug 30, 2024

Replace the existing C++ implementation of extractInlinableText with a new implementation based on swift-syntax. It uses SwiftIfConfig to remove inactive regions (with a special mode), and a new compiler-only entrypoint in the library to remove comments and #sourceLocation.

Fixes rdar://117491193

Replace the existing C++ implementation of extractInlinableText with
a new implementation based on swift-syntax. It uses SwiftIfConfig to
remove inactive regions (with a special mode), and a new compiler-only
entrypoint in the library to remove comments and `#sourceLocation`.
@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2832

@swift-ci please test

Copy link
Contributor

@CodaFi CodaFi left a comment

Choose a reason for hiding this comment

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

🚀

@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2832

@swift-ci please smoke test

@DougGregor DougGregor merged commit 601a5c3 into swiftlang:main Sep 4, 2024
5 checks passed
@DougGregor DougGregor deleted the extract-inlinable-text-swift-syntax branch September 4, 2024 14:53
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