Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Operator (0.25 sec)

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

            "java.lang.Number" to "kotlin.Number",
            "java.lang.Throwable" to "kotlin.Throwable",
            // Collections
            "java.util.Iterable" to "kotlin.collections.Iterable",
            "java.util.Iterator" to "kotlin.collections.Iterator",
            "java.util.ListIterator" to "kotlin.collections.ListIterator",
            "java.util.Collection" to "kotlin.collections.Collection",
            "java.util.List" to "kotlin.collections.List",
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Tue Feb 06 19:56:10 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/KotlinModifiersChangeTest.kt

        @Test
        fun `operator or infix modifier change is breaking`() {
    
            checkNotBinaryCompatibleKotlin(
                v1 = """
                    fun Int.invoke(some: Int) {}
                    operator fun Boolean.invoke(some: Int) {}
    
                    fun String.invoke(some: Int) {}
                    operator fun Long.invoke(some: Int) {}
    
                    fun Float.invoke(some: Int) {}
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 2.6K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/NullabilityChangesTest.kt

                        fun foo(bar: String) {}
                    }
                    operator fun Source.invoke(arg: String) {}
                """,
                v2 = """
                    class Source(some: String?) {
                        fun foo(bar: String?) {}
                    }
                    operator fun Source.invoke(arg: String?) {}
                """
            ) {
                assertHasNoError()
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 9.1K bytes
    - Viewed (0)
  4. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/kotlindsl/kotlin-dsl-upstream-candidates.kt

    import org.gradle.api.Project
    import java.io.ByteArrayOutputStream
    import java.io.File
    
    
    /**
     * `dir / "sub"` is the same as `dir.resolve("sub")`.
     *
     * @see [File.resolve]
     */
    operator fun File.div(child: String): File =
        resolve(child)
    
    
    fun Project.execAndGetStdout(workingDir: File, ignoreExitValue: Boolean, vararg args: String): String {
        val out = ByteArrayOutputStream()
        exec {
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 933 bytes
    - Viewed (0)
  5. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/classanalysis/ClassGraph.kt

        val entryPoints: MutableSet<ClassDetails> = linkedSetOf()
    
        val shadowPackagePrefix =
            shadowPackage.takeIf(String::isNotEmpty)
                ?.let { it.replace('.', '/') + "/" }
                ?: ""
    
        operator fun get(className: String) =
            classes.computeIfAbsent(className) {
                val outputClassName = if (unshadedPackages.matches(className)) className else shadowPackagePrefix + className
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/KotlinMetadataQueries.kt

            if (Modifier.isPrivate(ctMember.modifiers)) false
            else hasKotlinFlag(ctMember, Flag.IS_INTERNAL)
    
        fun isKotlinOperatorFunction(ctMethod: CtMethod): Boolean =
            hasKotlinFlag(ctMethod, Flag.Function.IS_OPERATOR)
    
        fun isKotlinInfixFunction(ctMethod: CtMethod): Boolean =
            hasKotlinFlag(ctMethod, Flag.Function.IS_INFIX)
    
        private
        fun hasKotlinFlag(ctClass: CtClass, flag: Flag): Boolean =
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Jun 07 08:20:38 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SinceAndIncubatingRulesKotlinTest.kt

            fun Int.fooExt() {}
    
            val String.barExt: String
                get() = "bar"
    
            var Int.bazarExt: String
                get() = "bar"
                set(value) = Unit
    
            operator fun String.invoke(p: String, block: String.() -> Unit) = Unit
    
        """
    
        private
        val annotatedKotlinMembers = """
    
            /** @since 2.0 */
            @Incubating
            fun foo() {}
    
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Jul 11 06:57:51 GMT 2023
    - 12.7K bytes
    - Viewed (0)
Back to top