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 e5f1966 commit 394e7c0Copy full SHA for 394e7c0
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