[KLIB] Make KotlinLibraryImpl printable
This commit is contained in:
@@ -231,8 +231,21 @@ open class KotlinLibraryImpl(
|
|||||||
BaseKotlinLibrary by base,
|
BaseKotlinLibrary by base,
|
||||||
MetadataLibrary by metadata,
|
MetadataLibrary by metadata,
|
||||||
IrLibrary by ir {
|
IrLibrary by ir {
|
||||||
override fun toString(): String {
|
override fun toString(): String = buildString {
|
||||||
return "[Klib: ${base.libraryFile.name}, file: ${base.libraryFile.path}]"
|
append("name ")
|
||||||
|
append(base.libraryName)
|
||||||
|
append(", ")
|
||||||
|
append("file: ")
|
||||||
|
append(base.libraryFile.path)
|
||||||
|
append(", ")
|
||||||
|
append("version: ")
|
||||||
|
append(base.versions)
|
||||||
|
if (isInterop) {
|
||||||
|
append(", interop: true, ")
|
||||||
|
append("native targets: ")
|
||||||
|
nativeTargets.joinTo(this, ", ", "{", "}")
|
||||||
|
}
|
||||||
|
append(')')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user