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 177b462 commit ef2e32fCopy full SHA for ef2e32f
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