Skip to content

[5.9] Reduce SwiftParser’s public surface area #1673

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

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 17, 2023

  • Explanation: 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.
  • Scope: The entire previously public surface area of SwiftParser is removed
  • Risk: Any issues will be found at compile time as there is no functionality change
  • Testing: n/a
  • Issue: rdar://106874944
  • Reviewer: @bnbarham on Reduce SwiftParser’s public surface area #1667

@ahoppen ahoppen changed the title Reduce SwiftParser’s public surface area [5.9] Reduce SwiftParser’s public surface area May 17, 2023
@ahoppen ahoppen requested a review from bnbarham May 17, 2023 18:30
@ahoppen
Copy link
Member Author

ahoppen commented May 17, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented May 24, 2023

@swift-ci Please test macOS

@ahoppen ahoppen force-pushed the ahoppen/5.9/parser-not-public branch from cd7b9a2 to 2e07af4 Compare May 25, 2023 03:25
@ahoppen
Copy link
Member Author

ahoppen commented May 25, 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/5.9/parser-not-public branch from 2e07af4 to f63a28b Compare May 25, 2023 15:14
@ahoppen
Copy link
Member Author

ahoppen commented May 25, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented May 25, 2023

@swift-ci Please test Windows

@ahoppen ahoppen merged commit 8ab781a into swiftlang:release/5.9 May 25, 2023
@ahoppen ahoppen deleted the ahoppen/5.9/parser-not-public branch May 25, 2023 21:11
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