Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for DocumentError (0.12 sec)

  1. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/dom/DocumentError.kt

    
    sealed interface DocumentError
    
    
    data class SyntaxError(val parsingError: ParsingError) : DocumentError // TODO: use a better representation once integration can be done
    
    
    data class UnsupportedKotlinFeature(val unsupportedConstruct: UnsupportedConstruct) : DocumentError
    
    
    data class UnsupportedSyntax(val cause: UnsupportedSyntaxCause) : DocumentError
    
    
    sealed interface UnsupportedSyntaxCause {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 12:28:39 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/dom/fromLanguageTree/LanguageTreeToDom.kt

            data class Failed(val errors: Collection<DocumentError>) : ExprConversion
        }
    
    
        private
        fun exprToValue(expr: Expr): ExprConversion = when (expr) {
            is Literal<*> -> ExprConversion.Converted(literalNode(expr))
            is FunctionCall -> run {
                val errors = mutableListOf<DocumentError>()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:09 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/dom/DefaultNodeTypes.kt

    }
    
    
    internal
    data class DefaultErrorNode(
        override val sourceData: SourceData,
        override val errors: Collection<DocumentError>
    ) : DeclarativeDocument.DocumentNode.ErrorNode {
        override fun toString(): String = "error(${errors.joinToString()})"
    }
    
    
    internal
    data class DefaultLiteralNode(
        override val value: Any,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:09 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/dom/DeclarativeDocument.kt

                val elementValues: Collection<ValueNode>
                val content: Collection<DocumentNode>
            }
    
            interface ErrorNode : DocumentNode {
                val errors: Collection<DocumentError>
            }
        }
    
        sealed interface ValueNode : Node {
            override val sourceData: SourceData
    
            interface LiteralValueNode : ValueNode {
                val value: Any
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:09 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/dom/DomTest.kt

                    }
                }
    
                document.content.forEach(::visit)
            }
    
            private
            fun errorString(error: DocumentError): String = when (error) {
                is SyntaxError -> "SyntaxError(${error.parsingError.message})"
                is UnsupportedKotlinFeature -> "UnsupportedKotlinFeature(${error.unsupportedConstruct.languageFeature})"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:09 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top