INNER CODE UNIT · Kotlin
DSL
kosi-libs/Kodein · kodein-di/src/commonMain/kotlin/org/kodein/di/Copy.kt:111
public class DSL : BaseDSL() {
override fun keySet(tree: DITree): Set<DI.Key<*, *, *>> {
val ignored = ignoreSpecs.flatMap { specsToKeys(tree, it) }
return copySpecs
.flatMap { specsToKeys(tree, it) }
.minus(ignored.toSet())
.toSet()
}
}
/**
* [Copy.allBut] DSL
*/
public class AllButDSL : BaseDSL() {
override fun keySet(tree: DITree): Set<DI.Key<*, *, *>> {
val kept = copySpecs.flatMap { specsToKeys(tree, it) }
val ignored = ignoreSpecs
.flatMap { specsToKeys(tree, it) }