Skip to content

Various visibility (and other) cleanup. #136

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 3 commits into from
Feb 3, 2020

Conversation

allevato
Copy link
Member

@allevato allevato commented Feb 2, 2020

This change cleans up visibility throughout the code, with the main objectives being:

  • Make things not public if they don't need to be (e.g., tests).
  • Make some internal things private or fileprivate if they don't need to be accessed outside the scope/file.
  • Use fileprivate at file scope instead of private.
  • Remove all @testable imports, making some internal things public to support that change (needed to add swift-format to CI).

This also deletes some unused code, mostly helpers that were written to work with nodes/trivia in the phase 1 rules that are no longer needed.

- Reduce things from public to internal if they don't need to be
  public, like tests.
- Use fileprivate, not private, at file scope.
- Reduce some things that were internal to fileprivate or private.
- Remove @testable imports as a prerequisite for adding CI, making
  necessary decls public to access them.
- Some other random NFC cleanup.
@allevato
Copy link
Member Author

allevato commented Feb 3, 2020

cc @dylansturg

@allevato allevato merged commit 000b9d5 into swiftlang:master Feb 3, 2020
@allevato allevato deleted the access-audit branch February 3, 2020 18:26
aaditya-chandrasekhar pushed a commit to val-verde/swift-format that referenced this pull request May 20, 2021
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