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

[K2] Dokka generates a redundant page #3857

Open
vmishenev opened this issue Oct 14, 2024 · 1 comment
Open

[K2] Dokka generates a redundant page #3857

vmishenev opened this issue Oct 14, 2024 · 1 comment
Labels
blocked: AA Changes required in Analysis API bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888

Comments

@vmishenev
Copy link
Member

Dokka generates a redundant page in the case of an untrivial hierarchy when there is an intersected and overridden fake function/property.

From Gradle DSL`s codebase:

class NamedDomainObjectContainerScope<T : Any>
   : NamedDomainObjectContainerDelegate<T>(), PolymorphicDomainObjectContainer<T>

abstract class NamedDomainObjectContainerDelegate<T : Any> : NamedDomainObjectContainer<T> {
   override fun getNamer(): T? = null
}

interface PolymorphicDomainObjectContainer<T> : NamedDomainObjectContainer<T>

interface NamedDomainObjectContainer<T> {
   fun getNamer(): T? = null
}

K1:
The signature of the function NamedDomainObjectContainerScope.getNamer leads to NamedDomainObjectContainerDelegate.getNamer.
It has the DRI NamedDomainObjectContainerDelegate.getNamer.

image

K2:
The signature of the function NamedDomainObjectContainerScope.getNamer leads to a dedicated page NamedDomainObjectContainerScope.getNamer
It has the DRI NamedDomainObjectContainerScope.getNamer.
image

@vmishenev vmishenev added bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888 labels Oct 14, 2024
vmishenev added a commit that referenced this issue Oct 14, 2024
@vmishenev
Copy link
Member Author

@vmishenev vmishenev added the blocked: AA Changes required in Analysis API label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: AA Changes required in Analysis API bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888
Projects
None yet
Development

No branches or pull requests

1 participant