Converted JetTypeReference to Kotlin

This commit is contained in:
Svetlana Isakova
2015-10-07 21:13:53 +03:00
parent d8e7dccc90
commit 63d9e287b7
11 changed files with 36 additions and 55 deletions
@@ -304,7 +304,7 @@ public class KotlinCompletionContributor : CompletionContributor() {
val nameRef = position.getParent() as? JetNameReferenceExpression ?: return null
val userType = nameRef.getParent() as? JetUserType ?: return null
val typeRef = userType.getParent() as? JetTypeReference ?: return null
if (userType != typeRef.getTypeElement()) return null
if (userType != typeRef.typeElement) return null
val parent = typeRef.getParent()
return when (parent) {
is JetNamedFunction -> parent.check { typeRef == it.receiverTypeReference }