- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for SchemaType (0.18 sec)
-
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/ProjectSchemaTest.kt
configurations = configurations.map { ConfigurationEntry(it) } ) internal typealias TypedProjectSchemaEntryList = List<ProjectSchemaEntry<SchemaType>> internal fun ClassLoader.schemaTypeFor(typeString: String): SchemaType = SchemaType(loadTypeOf(typeString)) internal fun ClassLoader.loadTypeOf(typeString: String) =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 7.2K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/TypeAccessibilityProviderTest.kt
class TypeAccessibilityProviderTest : TestWithClassPath() { @Test fun `public generic type with primitive component type is accessible`() { val genericTypeWithPrimitiveComponent = SchemaType.of<PublicGenericType<String>>() assertThat( accessibilityFor( genericTypeWithPrimitiveComponent, classPath = jarClassPathWith(PublicGenericType::class) ),
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 2.6K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/AccessorsClassPath.kt
InaccessibilityReason.TypeErasure(type) internal fun accessible(type: SchemaType): TypeAccessibility = TypeAccessibility.Accessible(type) internal fun inaccessible(type: SchemaType, vararg reasons: InaccessibilityReason) = inaccessible(type, reasons.toList()) internal fun inaccessible(type: SchemaType, reasons: List<InaccessibilityReason>): TypeAccessibility =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 05 20:25:05 UTC 2024 - 22K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/DefaultProjectSchemaProvider.kt
publicType.concreteClass.let { schemaType -> // Because a public Java class might not correspond necessarily to a // public Kotlin type due to Kotlin `internal` semantics, we check // whether the public Java class is also the first public Kotlin type, // otherwise we compute a new schema entry with the correct Kotlin type. val firstPublicKotlinType = schemaType.firstPublicKotlinAccessorTypeOrSelf
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 13:09:46 UTC 2024 - 9.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/ProjectSchemaProvider.kt
} data class SchemaType(val value: TypeOf<*>) { companion object { inline fun <reified T> of() = SchemaType(typeOf<T>()) } val kotlinString = kotlinTypeStringFor(value) override fun toString(): String = kotlinString } typealias TypedProjectSchema = ProjectSchema<SchemaType> data class ProjectSchema<out T>(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 13:09:46 UTC 2024 - 2.6K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-provider/src/test/kotlin/org/gradle/internal/declarativedsl/SettingsExtensionsSchemaTest.kt
} } val schema = settingsEvaluationSchema(settingsMock) val schemaType = schema.analysisSchema.dataClassesByFqName.values.find { it.name.simpleName == MyExtension::class.simpleName } assertNotNull(schemaType) assertTrue(schemaType!!.properties.any { it.name == "id" })
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 28 09:57:06 UTC 2024 - 2.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/ProjectAccessorsClassPathTest.kt
} internal fun namedDomainObjectContainerOf(elementType: SchemaType) = SchemaType(parameterizedTypeOf(typeOf<NamedDomainObjectContainer<*>>(), elementType.value)) internal inline fun <reified ReceiverType, reified EntryType> entry(name: String): ProjectSchemaEntry<SchemaType> = ProjectSchemaEntry(SchemaType.of<ReceiverType>(), name, SchemaType.of<EntryType>()) private
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 26 19:59:56 UTC 2023 - 18.5K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/Emitter.kt
nameSpec, accessibleType<Configuration>() ) private inline fun <reified T> accessibleType() =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 13:09:46 UTC 2024 - 7K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/AccessorFragments.kt
is TypeAccessibility.Accessible -> typeAccessibility.run { type.kmType to internalName() } is TypeAccessibility.Inaccessible -> KotlinType.any to InternalNameOf.javaLangObject } private val SchemaType.kmType: KmType get() = value.kmType private val TypeOf<*>.kmType: KmType get() = when { isParameterized -> genericTypeOf( classOf(parameterizedTypeDefinition.concreteClass),
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 13:09:46 UTC 2024 - 40.2K bytes - Viewed (0)