-
Notifications
You must be signed in to change notification settings - Fork 158
Remove redundant "bundle" parameters where a context is also available #1309
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
d-ronnqvist
merged 22 commits into
swiftlang:main
from
d-ronnqvist:remove-redundant-bundle-params
Oct 10, 2025
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
4c77e1c
Rename context "bundle" property to "inputs"
d-ronnqvist c4a9f77
Remove redundant "bundle" parameter from RenderHierarchyTranslator
d-ronnqvist 3d11235
Remove redundant "bundle" parameter from RenderContentCompiler
d-ronnqvist a8f6248
Update test to avoid using inputs that don't belong to the context
d-ronnqvist c2c2196
Remove redundant "bundle" parameter from MarkupReferenceResolver
d-ronnqvist 98492d0
Remove redundant "bundle" parameter from ReferenceResolver
d-ronnqvist e386863
Remove redundant "bundle" parameter from DocumentationContentRenderer
d-ronnqvist 9bacbbd
Remove redundant "bundle" parameter from RenderNodeTranslator
d-ronnqvist 9d08393
Remove redundant "bundle" parameter from DocumentationNodeConverter
d-ronnqvist 4922a76
Remove redundant "bundle" parameter from DocumentationContextConverter
d-ronnqvist 8bfd711
Remove redundant "bundle" parameter from GeneratedDocumentationTopics
d-ronnqvist c4bdf0b
Remove redundant "bundle" parameter from ConvertActionConverter
d-ronnqvist b50bc1a
Remove redundant "bundle" parameter from AutomaticCuration.seeAlso
d-ronnqvist a657d32
Remove redundant "bundle" parameter from RenderNodeTranslator.default…
d-ronnqvist faaa649
Remove redundant "bundle" parameter from DocumentationCurator
d-ronnqvist 5898c48
Remove unused DocumentationContext.unregister method
d-ronnqvist 061e1db
Remove redundant "bundle" parameter from PathHierarchyBasedLinkResolv…
d-ronnqvist 299719a
Remove redundant "bundle" parameters from various private Documentati…
d-ronnqvist 73ed112
Merge branch 'main' into remove-redundant-bundle-params
d-ronnqvist 83fe89f
Merge branch 'main' into remove-redundant-bundle-params
d-ronnqvist d6f0c50
Merge branch 'main' into remove-redundant-bundle-params
d-ronnqvist e1c04b7
Remove to local "bundle" variables
d-ronnqvist File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new Swift syntax for me - does this destructure renderer and documentationContext from the reference value passed into the closure? Why isn't this written the other way around? Like this:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variables within angle brackets is a Swift closure is a "capture list".
The same way that the previous code was shadowing
renderer
anddocumentationContext
with local variables to avoid strongly capturingself
in the closure, the capture list capturesrenderer
anddocumentationContext
explicitly as their own variables instead of them referring toself.renderer
andself.documentationContext
which would captureself
.