Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for nestedClassNameFor (0.2 sec)

  1. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/ClassBytesRepository.kt

    fun nestedClassFilePathCandidatesFor(path: String): Sequence<String> =
        generateSequence({ nestedClassNameFor(path) }, ::nestedClassNameFor)
            .flatMap(::candidateClassFiles)
    
    
    private
    fun candidateClassFiles(path: String) =
        sequenceOf("$path$CLASS_FILE_EXTENSION", "${path}Kt$CLASS_FILE_EXTENSION")
    
    
    private
    fun nestedClassNameFor(path: String) = path.run {
        lastIndexOf('/').takeIf { it > 0 }?.let { index ->
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top