Skip to content

Remove Foundation dependency in SwiftSyntaxBuilder #1016

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
Oct 25, 2022

Conversation

bnbarham
Copy link
Contributor

Avoid using a NSRegularExpression to count the number of #'s. Walk through the contents of the string and count them directly.

Resolves rdar://101503176.

@bnbarham bnbarham requested a review from DougGregor October 25, 2022 00:32
@bnbarham bnbarham requested a review from ahoppen as a code owner October 25, 2022 00:32
Avoid using a `NSRegularExpression` to count the number of #'s. Walk
through the contents of the string and count them directly.

Resolves rdar://101503176.
@bnbarham bnbarham force-pushed the string-literal-no-regex branch from 933494b to 37595c1 Compare October 25, 2022 01:43
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham bnbarham merged commit 990b24d into swiftlang:main Oct 25, 2022
@bnbarham bnbarham deleted the string-literal-no-regex branch October 25, 2022 03:02
@ahoppen
Copy link
Member

ahoppen commented Oct 25, 2022

Interesting, that dependency has been there for a while. Did we recently start building SwiftSyntaxBuilder into the compiler?

@DougGregor
Copy link
Member

Interesting, that dependency has been there for a while. Did we recently start building SwiftSyntaxBuilder into the compiler?

Yes, as part of pulling the builtin macros into the compiler

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