toFileSpec

fun KClass<*>.toFileSpec(lenient: Boolean, classInspector: ClassInspector? = null): FileSpec
fun Class<*>.toFileSpec(lenient: Boolean, classInspector: ClassInspector? = null): FileSpec

Return

a FileSpec ABI representation of this KClass.

Parameters

lenient

see docs on KotlinClassMetadata.readStrict and KotlinClassMetadata.readLenient for more details.


fun TypeElement.toFileSpec(lenient: Boolean, classInspector: ClassInspector? = null): FileSpec

Return

a FileSpec ABI representation of this TypeElement.

Parameters

lenient

see docs on KotlinClassMetadata.readStrict and KotlinClassMetadata.readLenient for more details.


fun KmClass.toFileSpec(classInspector: ClassInspector?, className: ClassName = createClassName(name)): FileSpec

Return

a FileSpec ABI representation of this KmClass.


fun KmPackage.toFileSpec(classInspector: ClassInspector?, className: ClassName): FileSpec

Return

a FileSpec ABI representation of this KmPackage.