From ffc6ffdb04e14f35ee34346ad31173a01fae56c8 Mon Sep 17 00:00:00 2001 From: Alefas Date: Tue, 24 Jan 2012 19:45:57 +0400 Subject: [PATCH] Fixed checking reference target for constructors (to show something with green background) --- .../parameterInfo/JetFunctionParameterInfoHandler.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/idea/src/org/jetbrains/jet/plugin/parameterInfo/JetFunctionParameterInfoHandler.java b/idea/src/org/jetbrains/jet/plugin/parameterInfo/JetFunctionParameterInfoHandler.java index a3d776c0936..b2e01511e89 100644 --- a/idea/src/org/jetbrains/jet/plugin/parameterInfo/JetFunctionParameterInfoHandler.java +++ b/idea/src/org/jetbrains/jet/plugin/parameterInfo/JetFunctionParameterInfoHandler.java @@ -200,10 +200,9 @@ public class JetFunctionParameterInfoHandler implements } } if (refExpression != null) { - ResolvedCall call = bindingContext.get(BindingContext.RESOLVED_CALL, refExpression); - if (call != null) { - CallableDescriptor candidateDescriptor = call.getCandidateDescriptor(); - if (candidateDescriptor == functionDescriptor) { + DeclarationDescriptor declarationDescriptor = bindingContext.get(BindingContext.REFERENCE_TARGET, refExpression); + if (declarationDescriptor != null) { + if (declarationDescriptor == functionDescriptor) { color = GREEN_BACKGROUND; } }