Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for AddAndConfigure (0.17 sec)

  1. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/dom/DomResolutionTest.kt

            val resolver = tracingCodeResolver()
    
            val topLevelBlock = parseAsTopLevelBlock(
                """
                addAndConfigure("correct") { }
                addAndConfigure("lambda missing")
                addAndConfigure("incorrect signature", 1) {
                    number = 123
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/declarative-dsl-tooling-models/src/main/kotlin/org/gradle/declarative/dsl/schema/FunctionSemantics.kt

    ])
    sealed interface FunctionSemantics : Serializable {
    
        val returnValueType: DataTypeRef
    
        @ToolingModelContract(subTypes = [
            AccessAndConfigure::class,
            AddAndConfigure::class
        ])
        sealed interface ConfigureSemantics : FunctionSemantics {
            val configuredType: DataTypeRef
            val configureBlockRequirement: ConfigureBlockRequirement
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 09:43:01 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/schemaBuidler/FunctionExtractorTest.kt

            val schema = schemaFromTypes(ReceiverOne::class, listOf(ReceiverOne::class))
            val function = schema.dataClassesByFqName.values.single().memberFunctions.single()
            assertIs<FunctionSemantics.AddAndConfigure>(function.semantics)
        }
    
        @Test
        fun `adding function may not have a configuring lambda if it returns Unit`() {
            val exception = assertThrows<IllegalStateException> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:01 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/StatementResolver.kt

                    when (semantics) {
                        is FunctionSemantics.Builder -> error("should be impossible?")
                        is FunctionSemantics.AccessAndConfigure -> true
                        is FunctionSemantics.AddAndConfigure -> true
                        is FunctionSemantics.Pure -> false
                    }
                }
    
                is ObjectOrigin.NullObjectOrigin -> false
                is ObjectOrigin.PropertyReference -> true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:02 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top