Skip to content
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

Add new tests for KDoc links #3947

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

vmishenev
Copy link
Contributor

Checks #3681 and #3631

@vmishenev vmishenev requested a review from whyoleg December 4, 2024 12:03
private fun DModule.getLinkDRIFrom(name: String): DRI? {
val link = this.dfs { it.name == name }?.documentation?.values?.single()?.firstMemberOfTypeOrNull<DocumentationLink>()
val doc = this.dfs { it.name == name }?.documentation?.values?.single()
?: throw IllegalStateException("Can't find documentation for declaration '$name'")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@vmishenev vmishenev merged commit 17871a0 into master Dec 4, 2024
14 checks passed
@vmishenev vmishenev deleted the vmishenev/3681-add-new-link-unit-tests branch December 4, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants