@@ -20,11 +20,10 @@ import org.jetbrains.kotlin.psi.KtDotQualifiedExpression
20
20
import org.jetbrains.kotlin.psi.KtNameReferenceExpression
21
21
import org.jetbrains.kotlin.psi.psiUtil.startOffset
22
22
import org.javacs.kt.LOG
23
- import kotlin.math.abs
24
23
25
24
fun fetchSignatureHelpAt (file : CompiledFile , cursor : Int ): SignatureHelp ? {
26
25
val (signatures, activeSignature, activeParameter) = getSignatureTriplet(file, cursor) ? : return nullResult(" No call around ${file.describePosition(cursor)} " )
27
- return SignatureHelp (signatures, activeSignature,activeParameter)
26
+ return SignatureHelp (signatures, activeSignature, activeParameter)
28
27
}
29
28
30
29
/* *
@@ -42,6 +41,7 @@ fun getDocString(file: CompiledFile, cursor: Int): String {
42
41
}
43
42
44
43
// TODO better function name?
44
+ @Suppress(" ReturnCount" )
45
45
private fun getSignatureTriplet (file : CompiledFile , cursor : Int ): Triple <List <SignatureInformation >, Int?, Int?>? {
46
46
val call = file.parseAtPoint(cursor)?.findParent<KtCallExpression >() ? : return null
47
47
val candidates = candidates(call, file)
@@ -127,6 +127,7 @@ private fun isCompatibleWith(call: KtCallExpression, candidate: CallableDescript
127
127
return true
128
128
}
129
129
130
+ @Suppress(" ReturnCount" )
130
131
private fun activeParameter (call : KtCallExpression , cursor : Int ): Int? {
131
132
val args = call.valueArgumentList ? : return null
132
133
val text = args.text
0 commit comments