Skip to content

Conversation

@mayaepps
Copy link
Contributor

Bug/issue #, if applicable:

Summary

If a caller needs to initialize a RenderIndex.Node object with an optional type value, they cannot do so. Since RenderIndex.Node’s type property is optional, the public initializer should accept an optional.

Dependencies

N/A

Testing

Create a RenderIndex.Node object, and confirm that you can provide a nil value to the initializer without compilation errors.

Checklist

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

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

Since RenderIndex.Node’s type property is optional, the public initializer should accept an optional.
@patshaughnessy
Copy link
Contributor

@swift-ci please test

@mayaepps mayaepps merged commit a42ebbf into swiftlang:main Nov 19, 2025
2 checks passed
@mayaepps mayaepps deleted the RenderIndex.Node-accepts-optional branch November 19, 2025 18:45
mayaepps added a commit to mayaepps/swift-docc that referenced this pull request Dec 4, 2025
Since RenderIndex.Node’s type property is optional, the public initializer should accept an optional.

Co-authored-by: Pat Shaughnessy <pat_shaughnessy@apple.com>
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.

3 participants