Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for singleOrNull (0.04 seconds)

  1. build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportWorkAction.kt

                    // This is needed to find the JavaDoc of a package declaration in 'package-info.java'
                    ?: (node as? PackageDeclaration)?.parentNode?.get()?.childNodes?.filterIsInstance<JavadocComment>()?.singleOrNull()?.parse()?.let { findVersionFromJavadoc(it) }
                    ?: VERSION_NOT_FOUND,
                toIncubatingDescription(node, this, sourceFile)
            )
    
        private
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Jun 02 09:57:54 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  2. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt

        return thisTypeAsKt.endsWith(ktTypeRawName)
    }
    
    
    private
    fun KtFile.ktClassOf(member: CtClass) =
        collectDescendantsOfType<KtClassOrObject> { it.fqName?.asString() == member.name }.singleOrNull()
    
    
    private
    val SINCE_REGEX = Regex("""@since ([^\s]+)""")
    
    
    fun KtDeclaration.getSince(): String? =
        docComment?.let { SINCE_REGEX.find(it.text)?.groupValues?.get(1) }
    
    
    private
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Jul 08 07:02:19 GMT 2025
    - 13.2K bytes
    - Click Count (0)
Back to Top