- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for ErrorReason (0.14 sec)
-
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/dom/resolution/DefaultDocumentResolutionContainer.kt
ErrorReason.MissingConfigureLambda, ErrorReason.UnusedConfigureLambda, is ErrorReason.UnresolvedFunctionCallArguments, is ErrorReason.UnresolvedFunctionCallReceiver, is ErrorReason.UnresolvedFunctionCallSignature, is ErrorReason.DuplicateLocalValue, is ErrorReason.ValReassignment, is ErrorReason.AmbiguousFunctions,
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 31 13:47:10 UTC 2024 - 13.1K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/ResolutionTracerTest.kt
assertEquals(listOf(ErrorReason.UnresolvedReference::class), resolver.trace.expressionResolution(failedLhs.lhs).errors?.map { it.errorReason::class }) val failedRhs = result.errors.first { it.errorReason is ErrorReason.UnresolvedAssignmentRhs }.element as Assignment assertNull(resolver.trace.assignmentResolution(failedRhs).result)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Feb 06 23:16:59 UTC 2024 - 5.8K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-evaluator/src/main/kotlin/org/gradle/internal/declarativedsl/evaluator/EvaluationFailureMessageGenerator.kt
} is ErrorReason.AmbiguousImport -> "ambiguous import '${errorReason.fqName}'" is ErrorReason.AssignmentTypeMismatch -> "assignment type mismatch, expected '${errorReason.expected}', got '${errorReason.actual}'" ErrorReason.DanglingPureExpression -> "dangling pure expression" is ErrorReason.DuplicateLocalValue -> "duplicate local 'val ${errorReason.name}'"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 12:25:47 UTC 2024 - 8.3K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/LambdaTest.kt
schema.resolve("lambdaNotAllowed(0) { }").isError(ErrorReason.UnresolvedFunctionCallSignature::class) } private fun ResolutionResult.isSuccessful() { assertTrue { errors.isEmpty() } assertTrue { additions.size == 1 } } private fun ResolutionResult.isError(errorReason: KClass<out ErrorReason>) { assertTrue { errors.any { errorReason.isInstance(it.errorReason) } } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Feb 26 12:27:49 UTC 2024 - 2.6K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoPlugins/PluginsDemo.kt
val result = schema.resolve("val x = plugins { }") assertTrue { result.errors.single().errorReason == ErrorReason.UnitAssignment } } @Test fun `unit assigned to property is reported as an error`() { val result = schema.resolve("plugins = plugins { }") assertTrue { result.errors.any { it.errorReason == ErrorReason.UnitAssignment } } } @Test
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 10:08:01 UTC 2024 - 2.2K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/StatementResolver.kt
errorCollector.collect(ResolutionError(assignment, ErrorReason.UnresolvedAssignmentLhs)) null } else { var hasErrors = false if (lhsResolution.property.isReadOnly) { errorCollector.collect(ResolutionError(assignment, ErrorReason.ReadOnlyPropertyAssignment(lhsResolution.property)))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 10:08:02 UTC 2024 - 6.4K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/PropertyTest.kt
val singleError = result.errors.single().errorReason assertIs<ErrorReason.ReadOnlyPropertyAssignment>(singleError) assertEquals("x", singleError.property.name) } @Test fun `write-only property cannot be read`() { val result = schema().resolve("y = z") assertEquals(2, result.errors.size) assertTrue { result.errors.any { it.errorReason is ErrorReason.UnresolvedAssignmentRhs } }
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/resolution.kt
val element: LanguageTreeElement, val errorReason: ErrorReason ) 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
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 12:25:46 UTC 2024 - 3.3K bytes - Viewed (0) -
operator/pkg/metrics/utils.go
// for a given name and the error status. func CountCRFetchFail(reason metav1.StatusReason) { errorReason := string(reason) if reason == metav1.StatusReasonUnknown { errorReason = "unknown" } GetCRErrorTotal. With(CRFetchErrorReasonLabel.Value(errorReason)). Increment() } // CountManifestRender increments the count of rendered // manifest from IstioOperator CR by component name.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 20 18:48:20 UTC 2020 - 1.8K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/SubtypingTest.kt
assertEquals(0, result.assignments.size) assertEquals(2, result.errors.size) result.errors.forEach { error -> assertNotNull(error) val reason = error.errorReason assertIs<ErrorReason.AssignmentTypeMismatch>(reason) assertEquals(NotASubtype::class.simpleName, (((reason.actual.ref as DataTypeRef.Type).dataType as DataClass).name as DefaultFqName).simpleName) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 10:08:02 UTC 2024 - 4.1K bytes - Viewed (0)