Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for generic (0.74 sec)

  1. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/ProjectSchemaAccessorsIntegrationTest.kt

                    bar
                    baz
                    """
                )
            )
        }
    
        @Test
        fun `multiple generic extension targets`() {
    
            withBuildSrc {
    
                "src/main/kotlin" {
                    withFile(
                        "types.kt",
                        """
    
                        package my
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 29 11:39:00 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/KotlinBuildScriptIntegrationTest.kt

                    doLast {
                        // Explicit SAM conversion
                        println(create("foo", NamedDomainObjectFactory<String> { it.toUpperCase() }))
                        // Explicit SAM conversion with generic type argument inference
                        println(create<String>("bar", NamedDomainObjectFactory { it.toUpperCase() }))
                        // Implicit SAM conversion
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 29 11:39:00 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleKotlinDslIntegrationTest.kt

                    *23*
                    *42*
                    """
                )
            )
        }
    
        @Test
        @LeaksFileHandles("Kotlin Compiler Daemon working directory")
        fun `given generic extension types they can be accessed and configured`() {
    
            withDefaultSettingsIn("buildSrc")
    
            withFile(
                "buildSrc/build.gradle.kts",
                """
    
                plugins {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 18:26:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  4. JavadocStyleGuide.md

    # Gradle Javadoc Style Guide
    
    ## 1.1 Formatting
    
    ### 1.1.1 General form
    
    The basic formatting of Javadoc blocks is as seen in this example:
    
    ```java
    /**
     * Returns an Image object that can then be painted on the screen.
     * <p>
     * The url argument must specify an absolute {@link URL}. 
     * The name argument is a specifier that is relative to the url argument.
     * This method always returns immediately, whether or not the image exists. 
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 15:43:07 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. LICENSE

        the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or
        (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
        even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 11:07:23 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt

            return name.startsWith("kotlin.jvm.functions.Function")
        }
    
        val ktTypeRawName = ktTypeAsText
            .trimEnd('?') // nullability is not part of JVM types
            .substringBefore('<') // generics are not part of parameter types in JVM method signatures
    
        val thisTypeAsKt = primitiveTypeStrings[name] ?: name
        return thisTypeAsKt.endsWith(ktTypeRawName)
    }
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 20:38:19 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  7. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiExtensionsGenerator.kt

        listOf(sourceName, isNullable, isRaw, variance) +
            typeArguments.flatMap(::apiTypeKey) +
            bounds.flatMap(::apiTypeKey)
    }
    
    
    // TODO Policy for extensions with reified generics
    //
    // Goals
    // - make the dsl predictable
    // - prevent ambiguous overload situations
    //
    // Rules
    // 1. an extension should either require no type parameters, a single reifeid type parameter, at call site
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 21:41:53 UTC 2023
    - 18.1K bytes
    - Viewed (0)
  8. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiTypeProvider.kt

     * will throw [IllegalStateException].
     *
     * Limitations:
     * - supports Java byte code only, not Kotlin
     * - does not support nested Java arrays as method parameters
     * - does not support generics with multiple bounds
     */
    class ApiTypeProvider internal constructor(
        private val asmLevel: Int,
        private val incubatingAnnotationTypeDescriptor: String,
        private val repository: ClassBytesRepository,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 19:56:10 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  9. CONTRIBUTING.md

    IntelliJ automatically hides stacktrace elements from the `org.gradle` package, which makes running/debugging tests more difficult. You can disable this behavior by changing IntelliJ Preferences under Editor -> General -> Console. In the "Fold lines that contain" section, remove the `org.gradle` entry.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 01:39:23 UTC 2024
    - 15.7K bytes
    - Viewed (0)
Back to top