Skip to content

Conversation

QuietMisdreavus
Copy link
Contributor

Summary

This PR tweaks how swift-docc uses KindIdentifier instances from SymbolKit. Instead of matching on an explicit .unknown case (and using an exhaustive match), it instead changes them to default branches, to catch any new cases as they're added. This allows us to add new symbol kinds to SymbolKit (e.g. swiftlang/swift-docc-symbolkit#21) without creating a source-breaking change.

Dependencies

N/A

Testing

Existing functionality should remain unchanged.

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

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please test

@QuietMisdreavus
Copy link
Contributor Author

I confirmed in a local build that this change still works with swiftlang/swift-docc-symbolkit#7 applied, which would have otherwise been a breaking change.

@QuietMisdreavus
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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants