Skip to content

Reduce SwiftParser’s public surface area #1667

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
May 17, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 16, 2023

Make all public functions in SwiftParser that aren’t the parser’s entry functions either SPI or internal. Also make a lot of the RawSyntax SPI internal. Most of the public functions were never intended to be public.

There is no functionality change here.

@ahoppen
Copy link
Member Author

ahoppen commented May 16, 2023

@swift-ci Please test

Make all `public` functions in SwiftParser that aren’t the parser’s entry functions either SPI or `internal`. Also make a lot of the `RawSyntax` SPI internal. Most of the public functions were never intended to be public.
@ahoppen ahoppen force-pushed the ahoppen/parser-not-public branch from 7eab81d to 5be55bc Compare May 16, 2023 21:57
@ahoppen
Copy link
Member Author

ahoppen commented May 16, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented May 16, 2023

@swift-ci Please test Windows

@kimdv
Copy link
Contributor

kimdv commented May 17, 2023

@swift-ci please test windows

@ahoppen ahoppen merged commit d364e1e into swiftlang:main May 17, 2023
@ahoppen ahoppen deleted the ahoppen/parser-not-public branch May 17, 2023 18:22
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