181: Uast: KotlinAccessorCallExpression.methodIdentifier fix

This commit is contained in:
Nicolay Mitropolsky
2018-03-01 16:25:38 +03:00
committed by Nikolay Krasko
parent 7413e09dc1
commit 44a37f5dad
@@ -97,11 +97,11 @@ open class KotlinUSimpleReferenceExpression(
}
class KotlinAccessorCallExpression(
override val psi: KtElement,
override val uastParent: KotlinUSimpleReferenceExpression,
private val resolvedCall: ResolvedCall<*>,
private val accessorDescriptor: DeclarationDescriptor,
val setterValue: KtExpression?
override val psi: KtSimpleNameExpression,
override val uastParent: KotlinUSimpleReferenceExpression,
private val resolvedCall: ResolvedCall<*>,
private val accessorDescriptor: DeclarationDescriptor,
val setterValue: KtExpression?
) : UCallExpressionEx, JvmDeclarationUElement {
override val methodName: String?
get() = accessorDescriptor.name.asString()
@@ -126,8 +126,7 @@ open class KotlinUSimpleReferenceExpression(
type.toPsiType(this, psi, boxed = true)
}
override val methodIdentifier: UIdentifier?
get() = KotlinUIdentifier(uastParent.psi, this)
override val methodIdentifier: UIdentifier? by lazy { KotlinUIdentifier(psi.getReferencedNameElement(), this) }
override val classReference: UReferenceExpression?
get() = null