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
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

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