Companion

object Companion

Functions

Link copied to clipboard
fun from(element: PsiElement, offset: Int = 0): Location

Creates a Location from a PsiElement. If the element can't be determined, the KtFile with a character offset can be used.

Link copied to clipboard
fun startLineAndColumn(element: PsiElement, offset: Int = 0): PsiDiagnosticUtils.LineAndColumn

Determines the line and column of a PsiElement in the source file.