Kotlin Module Metadata
Represents the parsed metadata of a Kotlin JVM module file.
To create an instance of KotlinModuleMetadata, load the contents of the .kotlin_module
file into a byte array and call KotlinModuleMetadata.read. Then it is possible to transform the result into KmModule with KotlinModuleMetadata.toKmModule.
.kotlin_module
file is produced per Kotlin compilation, and contains auxiliary information, such as a map of all single- and multi-file facades (KmModule.packageParts), @OptionalExpectation
declarations (KmModule.optionalAnnotationClasses), and module annotations ([KmModule.annotations).