Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NonReadableProperty (0.3 sec)

  1. 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)
  2. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/dom/resolution/DefaultDocumentResolutionContainer.kt

                is ErrorReason.ValReassignment,
                is ErrorReason.AmbiguousFunctions,
                is ErrorReason.AmbiguousImport,
                ErrorReason.DanglingPureExpression,
                is ErrorReason.NonReadableProperty,
                ErrorReason.UnitAssignment, // TODO: should we still check for this?
                ErrorReason.AccessOnCurrentReceiverOnlyViolation -> error("not expected here")
            }
        }.distinct()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:10 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
Back to top