File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
core/common/src/internal/format/parser Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,14 @@ internal class ParserStructure<in Output>(
4141 " ${operations.joinToString(" , " )} (${followedBy.joinToString(" ;" )} )"
4242}
4343
44+ /* *
45+ * Concatenates a list of parser structures into a single structure.
46+ *
47+ * Processes parsers in reverse order, batching operations from parsers without alternatives
48+ * and simplifying the resulting structure (merging number spans, handling unconditional modifications).
49+ *
50+ * @return A single parser structure representing the composition of all parsers in the list
51+ */
4452internal fun <T > List<ParserStructure<T>>.concat (): ParserStructure <T > {
4553 /* *
4654 * Merges pending operations (base operations, number span, and unconditional modifications)
You can’t perform that action at this time.
0 commit comments