Skip to content

Conversation

d-ronnqvist
Copy link
Contributor

Bug/issue #, if applicable:

Summary

Now that DocumentationContext is known have exactly one inputs/bundle, types and methods don't need both a context parameter and a inputs/bundle parameter.

This PR goes through various types one-by-one and removes the bundle parameters and updates all the callers to stop passing it.

The main benefit of this is that it's no longer possible to pass a bundle/inputs that don't belong to the context.

Another outcome of this is that many tests who call the context loading test helpers now ignore the bundle. A follow up PR, after this is merged, will clean up the test helpers and have the caller access the bundle/inputs from the context where needed.

Dependencies

None.

Testing

Nothing in particular. This isn't a user-facing change.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests
  • Ran the ./bin/test script and it succeeded
  • [ ] Updated documentation if necessary

@d-ronnqvist d-ronnqvist added the code cleanup Code cleanup *without* user facing changes label Sep 30, 2025
@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist d-ronnqvist force-pushed the remove-redundant-bundle-params branch from 9283b45 to 1cfcdd0 Compare September 30, 2025 13:14
@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist d-ronnqvist force-pushed the remove-redundant-bundle-params branch from 1cfcdd0 to 299719a Compare September 30, 2025 14:14
@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanup Code cleanup *without* user facing changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant