KtPureElement¶
interface KtPureElement
A minimal interface that KtElement implements for the purpose of code-generation that does not need the full power of PSI. This interface can be easily implemented by synthetic elements to generate code for them.
Inheritors¶
Properties¶
pureEndOffset¶
The end offset of this element's source.
pureStartOffset¶
The start offset of this element's source, excluding any leading comments.
Functions¶
getContainingKtFile¶
@NotNull
abstract fun getContainingKtFile(): KtFile
Returns the KtFile this element belongs to.
getParent¶
abstract fun getParent(): PsiElement
Returns parent source element.
getPsiOrParent¶
@NotNull
abstract fun getPsiOrParent(): KtElement
Returns this or parent source element (for synthetic element declarations). Use it only for the purposes of source attribution.