Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for traverseHierarchy (0.45 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/ClassLoaderScopeExtensions.kt

    
    internal
    inline fun <T> ClassLoaderScope.foldHierarchy(initial: T, operation: (T, ClassLoaderScope) -> T): T {
        var result = initial
        traverseHierarchy { result = operation(result, it) }
        return result
    }
    
    
    internal
    inline fun ClassLoaderScope.traverseHierarchy(action: (ClassLoaderScope) -> Unit) {
        action(this)
        traverseAncestors(action)
    }
    
    
    internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top