We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mergeOperations
Parser.kt
1 parent 5c46bc3 commit 873a49eCopy full SHA for 873a49e
core/common/src/internal/format/parser/Parser.kt
@@ -71,6 +71,7 @@ internal fun <T> List<ParserStructure<T>>.concat(): ParserStructure<T> {
71
unconditionalModifications: List<UnconditionalModification<T>>,
72
simplifiedParserStructure: ParserStructure<T>,
73
): ParserStructure<T> {
74
+ require(simplifiedParserStructure.operations.isNotEmpty()) { "Cannot merge operations from empty structure" }
75
val operationsToMerge = simplifiedParserStructure.operations
76
val firstOperation = operationsToMerge.firstOrNull()
77
val mergedOperations = buildList {
0 commit comments