Pull Up/Push Down/Extract Super: Show member dependencies in the refactoring dialog

This commit is contained in:
Alexey Sedunov
2016-09-20 20:48:07 +03:00
parent 8a5628cde5
commit 22271f0af0
15 changed files with 335 additions and 17 deletions
@@ -471,4 +471,6 @@ fun KtClassOrObject.findPropertyByName(name: String): KtNamedDeclaration? {
fun isTypeConstructorReference(e: PsiElement): Boolean {
val parent = e.parent
return parent is KtUserType && parent.referenceExpression == e
}
}
fun KtParameter.isPropertyParameter() = ownerFunction is KtPrimaryConstructor && hasValOrVar()