Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for operators (0.16 sec)

  1. 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 08 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 933 bytes
    - Viewed (0)
  2. 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 08 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. .github/CODEOWNERS

    # Core automation platform (core/runtime)
    platforms/core-runtime/                                     @gradle/bt-core-runtime-maintainers
    platforms/core-runtime/build-operations/                    @gradle/bt-core-runtime-maintainers @gradle/bt-execution @gradle/bt-dv-build-cache
    platforms/core-runtime/functional/                          @gradle/bt-core-runtime-maintainers @gradle/bt-execution @bamboo
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Wed Apr 24 15:52:09 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  6. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiTypeProvider.kt

    
    private
    inline val Int.isVarargs: Boolean
        get() = ACC_VARARGS in this
    
    
    private
    inline val Int.isSynthetic: Boolean
        get() = ACC_SYNTHETIC in this
    
    
    private
    operator fun Int.contains(flag: Int) =
    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)
  7. .cm/summary_table.cm

          - 'platforms/core-execution/build-cache-base/'
          - 'platforms/core-execution/build-cache-http/'
          - 'platforms/core-execution/build-cache-packaging/'
          - 'platforms/core-runtime/build-operations/'
          - 'platforms/core-runtime/files/'
          - 'platforms/core-execution/hashing/'
          - 'platforms/core-execution/snapshots/'
      - build_infrastructure:
        name: 'build_infrastructure'
        subprojects:
    Plain Text
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Thu Feb 08 15:20:44 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  8. 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)
  9. 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