Skip to content

Various visibility (and other) cleanup.#136

Merged
allevato merged 3 commits intoswiftlang:masterfrom
allevato:access-audit
Feb 3, 2020
Merged

Various visibility (and other) cleanup.#136
allevato merged 3 commits intoswiftlang:masterfrom
allevato:access-audit

Conversation

@allevato
Copy link
Copy Markdown
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
Copy Markdown
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