Skip to content

ReferenceProvider

fun interface ReferenceProvider<in T : KtElement> : Function1<T, List<PsiReference>> 

Functional interface used to create references for a specific PSI element of type T. The function must be pure and must return a (possibly empty) list of PsiReferences. Returning an empty list is preferred to doing unnecessary work when the element is not applicable.

Functions

invoke

abstract operator fun invoke(p1: T): List<PsiReference>