kopykat-kt / kopykat

Little utilities for more pleasant immutable data in Kotlin
Other
283 stars 16 forks source link

Handle nested declarations #35

Closed serras closed 2 years ago

serras commented 2 years ago

Fixes #34

I've get rid of name, and now at each point we carefully consider whether we need a qfName (fully qualified) or a baseName (just the final element).

Another change was to "flatten" the name of mutable copy classes, since we cannot add them to an already-existing class. So if for example we have:

class A { data class B(...) }

the name for the mutable copy class is A$B$Mutable.