Introduce CallableId.asSingleFqName and use it instead CallableId.asFqNameForDebugInfo

This commit is contained in:
Ilya Kirillov
2021-03-24 11:52:24 +01:00
parent 6f887896ff
commit 6e31ff4fb1
7 changed files with 10 additions and 7 deletions
@@ -54,7 +54,10 @@ data class CallableId(
fun asFqNameForDebugInfo(): FqName {
if (pathToLocal != null) return pathToLocal.child(callableName)
return asSingleFqName()
}
fun asSingleFqName(): FqName {
return classId?.asSingleFqName()?.child(callableName) ?: packageName.child(callableName)
}