Fixed checking reference target for constructors (to show something with green background)
This commit is contained in:
+3
-4
@@ -200,10 +200,9 @@ public class JetFunctionParameterInfoHandler implements
|
||||
}
|
||||
}
|
||||
if (refExpression != null) {
|
||||
ResolvedCall<? extends CallableDescriptor> 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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user