Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for firstOrNull (0.3 sec)

  1. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/HasKotlinFlagsMetadataQuery.kt

        constructorsSupplier.get().firstOrNull { c -> jvmSignature == c.signature?.asString() }?.flags?.let { predicate(it) } ?: false
    
    
    private
    fun hasFunctionFlags(functionsSupplier: Supplier<MutableList<KmFunction>>, jvmSignature: String, predicate: FlagsPredicate) =
        functionsSupplier.get().firstOrNull {
            jvmSignature == it.signature?.asString()
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Jun 07 08:14:15 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt

            "${declaringClass.baseQualifiedKotlinName}.${field.name}".let { fqn ->
                collectDescendantsOfType<KtProperty>()
                    .firstOrNull { it.fqName?.asString() == fqn }
                    ?.isDocumentedAsSince(version) == true
            }
    
        private
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 20 20:38:19 GMT 2023
    - 11.1K bytes
    - Viewed (0)
  3. .teamcity/src/main/kotlin/model/FunctionalTestBucketGenerator.kt

                null
            } else {
                val testCoverages = model.stages.flatMap { it.functionalTests }
                val foundTestCoverage = testCoverages.firstOrNull {
                    it.testType == TestType.platform &&
                        it.os == testCoverage.os &&
                        it.buildJvm == testCoverage.buildJvm
                }
                foundTestCoverage?.let {
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Thu Feb 15 17:04:41 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  4. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt

                throw IllegalStateException("Can't find the contributors section in the release notes $releaseNotes.")
            }
    
            val contributorSectionEndIndex = (contributorSectionBeginIndex until releaseNotesLines.size).firstOrNull {
                val line = releaseNotesLines[it].trim()
                line.isNotEmpty() && !line.startsWith("[")
            } ?: throw IllegalStateException("Can't find the contributors section end in the release notes $releaseNotes.")
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon May 16 05:03:11 GMT 2022
    - 5.7K bytes
    - Viewed (0)
  5. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateKotlinVersions.kt

                    if (idx < versionsByMinor.size - 1) {
                        add(entry.value.first())
                    } else {
                        add(entry.value.firstOrNull { !it.contains("-") })
                        add(entry.value.first())
                    }
                }
                add(minimumSupported)
            }.filterNotNull().distinct().sorted()
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Apr 26 13:50:17 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  6. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/ClassBytesRepository.kt

            classFilePathCandidatesFor(sourceName)
                .mapNotNull(::classBytesSupplierForFilePath)
                .firstOrNull()
    
        private
        fun classBytesSupplierForFilePath(classFilePath: String): ClassBytesSupplier? =
            classBytesIndex.asSequence().mapNotNull { it(classFilePath) }.firstOrNull()
    
        private
        fun sourceNamesFrom(entry: File): Sequence<String> =
            when {
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Sat Sep 30 16:17:27 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/SourcesRepository.kt

         */
        fun sourceFileAndSourceRootFor(sourceFilePath: String): Pair<File, File> =
            sourceRoots.asSequence()
                .map { it.resolve(sourceFilePath) to it }
                .firstOrNull { it.first.isFile }
                ?: throw IllegalStateException("Source file '$sourceFilePath' not found, searched in source roots:\n  - ${sourceRoots.joinToString("\n  - ")}")
    
        private
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Feb 20 16:37:41 GMT 2023
    - 4K bytes
    - Viewed (0)
  8. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

                listOf(testProjectToScenarioDurations, testProjectScenarioDurationsFallback)
                    .mapNotNull { it.getOrDefault(scenario.testProject, emptyList()).firstOrNull { duration -> duration.scenario == scenario.scenario } }
                    .firstOrNull() ?: PerformanceTestDuration(scenario.scenario, 1) // Fallback for new performance tests (don't use 0 to avoid division by zero)
            })
            .entries
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Mon Feb 19 11:22:56 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  9. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiExtensionsGenerator.kt

            .sortedWithTypeOfTakingFunctionsFirst()
            .flatMap { function ->
    
                val candidateFor = object {
    
                    val groovyNamedArgumentsToVarargs =
                        function.parameters.firstOrNull()?.type?.isGroovyNamedArgumentMap == true
    
                    val javaClassToKotlinClass =
                        function.parameters.any { it.type.hasJavaClass() }
    
                    val extension
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Wed Dec 20 21:41:53 GMT 2023
    - 18.1K bytes
    - Viewed (0)
Back to top