FIR: Support DEBUG_INFO_CALL calls in tests

This commit is contained in:
Denis Zharkov
2020-04-08 17:03:06 +03:00
parent 22dc837e26
commit b62400124a
10 changed files with 201 additions and 11 deletions
@@ -28,6 +28,10 @@ data class CallableId(val packageName: FqName, val className: FqName?, val calla
@Deprecated("TODO: Better solution for local callables?")
constructor(callableName: Name) : this(FqName.topLevel(Name.special("<local>")), null, callableName)
fun asFqName(): FqName {
if (className == null) return packageName.child(callableName)
return classId!!.asSingleFqName().child(callableName)
}
override fun toString(): String {
return buildString {