KaResolveExtensionNavigationTargetsProvider¶
abstract class KaResolveExtensionNavigationTargetsProvider
Constructors¶
KaResolveExtensionNavigationTargetsProvider¶
constructor()
Functions¶
getNavigationTargets¶
abstract fun KaSession.getNavigationTargets(element: KtElement): Collection<PsiElement>
Provides a list of PsiElements which should be used as navigation targets in place of the generated element. They will be used as navigation targets in IntelliJ.
These PsiElements should be the source item(s) that element is generated from. For example, for a KtElement generated by a resource compiler, the navigation elements will typically be the PsiElements of the resource items in the corresponding resource file.
While getNavigationTargets usually returns a single result, it may return an empty collection if there is no navigation target, or multiple targets in case of an ambiguity.