INNER CODE UNIT · Kotlin

AllButDSL

kosi-libs/Kodein · kodein-di/src/commonMain/kotlin/org/kodein/di/Copy.kt:124

    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) }
                    .minus(kept.toSet())
            return tree.bindings.keys.minus(ignored)
        }
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…