refactor: rename resolveAndGetMethod to method

This commit is contained in:
Lucaskyy
2022-04-08 22:58:39 +02:00
committed by oSumAtrIX
parent 59189058ac
commit 783fbf43f2

View File

@@ -15,9 +15,8 @@ data class SignatureResolverResult(
val scanData: PatternScanResult,
private val resolvedMethodName: String,
) {
fun resolveAndGetMethod(): MutableMethod {
return definingClassProxy.resolve().methods.single { it.name == resolvedMethodName }
fun method(): MutableMethod {
return definingClassProxy.resolve().methods.first { it.name == resolvedMethodName }
}
@Suppress("Unused") // TODO(Sculas): remove this when we have coverage for this method.