writeSyntheticClass

fun writeSyntheticClass(metadataVersion: IntArray = COMPATIBLE_METADATA_VERSION, extraInt: Int = 0): Metadata

Writes synthetic class metadata.

Parameters

metadataVersion

metadata version to be written to the metadata (see Metadata.metadataVersion), KotlinClassMetadata.COMPATIBLE_METADATA_VERSION by default. Cannot be less (lexicographically) than [1, 4]

extraInt

the value of the class-level flags to be written to the metadata (see Metadata.extraInt), 0 by default

Throws

if metadataVersion is not supported for writing.