Stop in the method with suitable name if no descriptor found
Absence of descriptor is possible when sources are outdated or absent. Early stop is better than iterating in step into till the program end.
This commit is contained in:
@@ -62,7 +62,7 @@ class KotlinBasicStepMethodFilter(
|
||||
} else {
|
||||
declaration?.resolveToDescriptor()
|
||||
}
|
||||
} ?: return false
|
||||
} ?: return true
|
||||
|
||||
fun compareDescriptors(d1: DeclarationDescriptor, d2: DeclarationDescriptor): Boolean {
|
||||
return d1 == d2 || d1.original == d2.original
|
||||
|
||||
Reference in New Issue
Block a user