kotlin-algebraic-types-plugin / org.drx.plugin.algebraictypes.generate.optics / imports

imports

fun imports(clazz: ClassRepresentation, collected: HashSet<String> = hashSetOf()): HashSet<String> fun imports(dataClass: DataClass, algTypes: String): String

Data class may depend on types which need to be imported. Compute the imports of the data class.

fun imports(dataClass: SealedClass, algTypesFolder: String): String

Sealed class may depend on types which need to be imported. Compute the imports of the sealed class.