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:
Nikolay Krasko
2017-01-27 20:56:05 +03:00
parent c8999c4141
commit 563196a8aa
@@ -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