Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 95 for type$val (0.13 sec)

  1. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/ProjectSchemaTest.kt

                equalTo(inaccessible(type, nonAvailable(type.kotlinString)))
            )
        }
    
        @Test
        fun `public type is represented as Accessible`() {
    
            val typeString = "existing.Type"
    
            val classPath = classPathWithPublicType(typeString)
            classLoaderFor(classPath).useToRun {
                val type = schemaTypeFor(typeString)
                val projectSchema = availableProjectSchemaFor(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/NamedDomainObjectCollectionExtensionsTest.kt

                    domainObject,
                    typeOf<NamedDomainObjectProvider<DomainObject>>()
                )
            }
        }
    
        @Test
        fun `val domainObject by registering(type)`() {
    
            val domainObjectProvider = mockDomainObjectProviderFor(DomainObject())
            val container = mock<PolymorphicDomainObjectContainer<Any>> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/ProjectExtensionsTest.kt

    import org.junit.Test
    
    
    @Suppress("deprecation")
    class ProjectExtensionsTest {
    
        abstract class CustomConvention
    
        @Test
        fun `can get generic project extension by type`() {
    
            val project = mock<Project>()
            val convention = mock<org.gradle.api.plugins.Convention>()
            val extension = mock<NamedDomainObjectContainer<List<String>>>()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/ExtensionAwareExtensionsTest.kt

                verify(extensionContainer).configure(eq(extensionType), any<Action<JacocoTaskExtension>>())
                verifyNoMoreInteractions()
            }
        }
    
        @Test
        fun `can get generic extension by type`() {
    
            val extensionAware = mock<ExtensionAware>()
            val extensions = mock<ExtensionContainer>()
            val extension = mock<NamedDomainObjectContainer<List<String>>>()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/SubtypingTest.kt

        @Test
        fun `type-checks assignment of subtype to superclass type`() {
            val result = schema.resolve(
                """
                superClassProp = sub()
                """.trimIndent()
            )
    
            assertEquals(1, result.assignments.size)
        }
    
        @Test
        fun `type-checks assignment of subtype to super interface type`() {
            val result = schema.resolve(
                """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:02 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/KotlinGrammar.kt

                optional(
                    expression * zeroOrMore(token(COMMA) * expression) * optional(token(COMMA))
                )
            )
    
        val parenthesizedType by debug {
            paren(type)
        }
    
        val parenthesizedExpression by debug {
            paren(expression)
        }
    
        val valueArgument by debug {
            optional(annotation) * optional(simpleIdentifier * token(EQ)) * optional(token(MUL)) * expression
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/analysis-api-fir-generator/src/org/jetbrains/kotlin/analysis/api/fir/generator/generatorUtils.kt

                when (val typeArgument = it.type) {
                    null -> "*"
                    else -> typeConversion(typeArgument)
                } + nullableSuffix
            }
        }
        print(typeConversion(type))
    }
    
    val KType.simpleName: String
        get() = (classifier as KClass<*>).simpleName!!
    
    val KType.qualifiedName: String
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jul 18 11:49:20 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/OrdinalNodeCodec.kt

            writeEnum(value.type)
            writeInt(value.ordinalGroup.ordinal)
        }
    
        override suspend fun ReadContext.decode(): OrdinalNode {
            val ordinalType = readEnum<OrdinalNode.Type>()
            val ordinal = readInt()
            return ordinalGroups.group(ordinal).locationsNode(ordinalType)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10JvmTypeMapper.kt

            get() = analysisSession.token
    
        private val typeMapper by lazy { KaFe10JvmTypeMapperContext(analysisContext.resolveSession) }
    
        override fun mapTypeToJvmType(type: KaType, mode: TypeMappingMode): Type {
            val kotlinType = (type as KaFe10Type).fe10Type
            return typeMapper.mapType(kotlinType, mode)
        }
    
        override fun isPrimitiveBacked(type: KaType): Boolean {
            val kotlinType = (type as KaFe10Type).fe10Type
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/TaskContainerExtensionsTest.kt

                assertInferredTypeOf(
                    clean,
                    typeOf<TaskProvider<Task>>()
                )
            }
        }
    
        @Test
        fun `val task by registering(type)`() {
    
            val taskProvider = mockTaskProviderFor(mock<Delete>())
            val tasks = mock<TaskContainer> {
                on { register("clean", Delete::class.java) } doReturn taskProvider
            }
    
            tasks {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top