You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/kotlin/com/github/developerutils/kotlinfunctionargumentshelper/KotlinFunctionArgumentsHelperIntention.kt
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -47,17 +47,20 @@ class KotlinFunctionArgumentsHelperIntention : SelfTargetingIntention<KtValueArg
47
47
val calleeExpression = getStrictParentOfType<KtCallExpression>()?.calleeExpression ?:returnnull
48
48
val context = calleeExpression.analyze(BodyResolveMode.PARTIAL)
49
49
val descriptor = calleeExpression.getReferenceTargets(context).firstOrNull() as?FunctionDescriptor
50
-
if (descriptor isJavaCallableMemberDescriptor) returnnull
51
-
return descriptor.takeIf { it isClassConstructorDescriptor|| it isSimpleFunctionDescriptor }
0 commit comments