Minor: Fix NI error in KotlinPositionManager
This commit is contained in:
+2
-4
@@ -204,10 +204,8 @@ class KotlinPositionManager(private val myDebugProcess: DebugProcess) : MultiReq
|
|||||||
val methodName = location.method().name()
|
val methodName = location.method().name()
|
||||||
return when {
|
return when {
|
||||||
JvmAbi.isGetterName(methodName) -> {
|
JvmAbi.isGetterName(methodName) -> {
|
||||||
val parameterForGetter = contextElement.primaryConstructor?.valueParameters?.firstOrNull {
|
val valueParameters = contextElement.primaryConstructor?.valueParameters ?: emptyList()
|
||||||
it.hasValOrVar() && it.name != null && JvmAbi.getterName(it.name!!) == methodName
|
valueParameters.find { it.hasValOrVar() && it.name != null && JvmAbi.getterName(it.name!!) == methodName }
|
||||||
} ?: return null
|
|
||||||
parameterForGetter
|
|
||||||
}
|
}
|
||||||
methodName == "<init>" -> contextElement.primaryConstructor
|
methodName == "<init>" -> contextElement.primaryConstructor
|
||||||
else -> null
|
else -> null
|
||||||
|
|||||||
Reference in New Issue
Block a user