- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for singleOrNull (0.15 sec)
-
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, nodeName(node, this, sourceFile) ) private fun findVersionFromJavadoc(javadoc: Javadoc): String? =
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Jun 28 08:29:28 UTC 2024 - 12.8K bytes - Viewed (0) -
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 fun KtDeclaration.isDocumentedAsSince(version: String) = docComment?.isSince(version) == true private fun KDoc.isSince(version: String) = text.contains("@since $version")
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Jul 04 08:05:22 UTC 2024 - 11.2K bytes - Viewed (0)