Skip to content

KotlinReferenceProvidersService

A project service that collects the PsiReferences contributed to a PSI element by the registered reference providers.

Reference contribution is environment-specific, so the concrete implementation is supplied by the surrounding platform (for example, the IDE). When no implementation is registered, the default returns no references.

Constructors

KotlinReferenceProvidersService

constructor()

Types

Companion

object Companion

Functions

getReferences

open fun getReferences(psiElement: PsiElement): Array<PsiReference>

Returns the references contributed to the given element, or an empty array if none are contributed.