Introduce Type Alias: Support callable references/class literals

#KT-14861 Fixed
This commit is contained in:
Alexey Sedunov
2016-11-21 16:34:41 +03:00
parent 9967d4c4e2
commit 752ae87591
13 changed files with 155 additions and 34 deletions
@@ -473,4 +473,6 @@ fun isTypeConstructorReference(e: PsiElement): Boolean {
return parent is KtUserType && parent.referenceExpression == e
}
fun KtParameter.isPropertyParameter() = ownerFunction is KtPrimaryConstructor && hasValOrVar()
fun KtParameter.isPropertyParameter() = ownerFunction is KtPrimaryConstructor && hasValOrVar()
fun isDoubleColonReceiver(expression: KtExpression) = expression.getParentOfTypeAndBranch<KtDoubleColonExpression> { this.receiverExpression } != null