Companion

object Companion

Functions

Link copied to clipboard
fun atName(element: KtNamedDeclaration): Entity

Create an entity at the location of the identifier of given named declaration.

Link copied to clipboard
fun atPackageOrFirstDecl(file: KtFile): Entity

Create an entity at the location of the package, first import or first declaration.

Link copied to clipboard
fun from(element: PsiElement, location: Location): Entity

Use this factory method if the location can be calculated much more precisely than using the given PsiElement.

fun from(element: PsiElement, offset: Int = 0): Entity

Factory function which retrieves all needed information from the PsiElement itself.