Skip to content

ElementReplaced

class ElementReplaced(val replacedElement: PsiElement) : KaElementModificationType

The element passed is the replacement element. The replaced element itself is represented by replacedElement. The replaced element itself cannot be the modification "anchor" because it has already been replaced and is not part of the KtFile anymore, but it might still be used to determine the modification's change type.

Constructors

ElementReplaced

constructor(replacedElement: PsiElement)

Properties

replacedElement

val replacedElement: PsiElement