Rename: Fixed rename of Kotlin enum constants/@JvmField properties through Java references

#KT-11817 Fixed
This commit is contained in:
Alexey Sedunov
2016-04-19 20:39:19 +03:00
parent 070923f03a
commit b35834dd18
13 changed files with 72 additions and 2 deletions
@@ -65,8 +65,10 @@ sealed class KtLightFieldImpl(
override fun computeConstantValue() = clsDelegate.computeConstantValue()
@Throws(IncorrectOperationException::class)
override fun setName(@NonNls name: String) = throw IncorrectOperationException("Not supported")
override fun setName(@NonNls name: String): PsiElement {
(kotlinOrigin as? KtNamedDeclaration)?.setName(name)
return this
}
private val _modifierList by lazy {
if (lightMemberOrigin is LightMemberOriginForDeclaration)