Introduce Type Alias: Support callable references/class literals
#KT-14861 Fixed
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user