- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for NonReadableProperty (0.37 sec)
-
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/resolution.kt
) sealed interface ErrorReason { data class AmbiguousImport(val fqName: FqName) : ErrorReason data class UnresolvedReference(val reference: Expr) : ErrorReason data class NonReadableProperty(val property: DataProperty) : ErrorReason data class ReadOnlyPropertyAssignment(val property: DataProperty) : ErrorReason data class UnresolvedFunctionCallArguments(val functionCall: FunctionCall) : ErrorReason
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 12:25:46 UTC 2024 - 3.3K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/PropertyTest.kt
assertTrue { result.errors.any { it.errorReason is ErrorReason.UnresolvedAssignmentRhs } } val nonReadablePropertyError = result.errors.mapNotNull { it.errorReason as? ErrorReason.NonReadableProperty }.single() assertEquals("z", nonReadablePropertyError.property.name) } @Test fun `if multiple property extractors have properties with the same name, first wins`() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 10:08:01 UTC 2024 - 4.6K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/PropertyAccessResolver.kt
checkAccessOnCurrentReceiver(result) if (result.property.isWriteOnly) { errorCollector.collect(ResolutionError(result.originElement, ErrorReason.NonReadableProperty(result.property))) return null } else { return result } } else { return result
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 10:08:01 UTC 2024 - 8.7K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-evaluator/src/main/kotlin/org/gradle/internal/declarativedsl/evaluator/EvaluationFailureMessageGenerator.kt
ErrorReason.AccessOnCurrentReceiverOnlyViolation -> "this member can only be accessed on a current receiver" is ErrorReason.NonReadableProperty -> "property cannot be used as a value: '${errorReason.property.name}'" } private fun describedUnassignedValueUsage(unassigned: AssignmentTraceElement.FailedToRecordAssignment): String {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 12:25:47 UTC 2024 - 8.3K bytes - Viewed (0)