(list: List)
| 1158 | * ``` |
| 1159 | */ |
| 1160 | export function serializeList(list: List): string { |
| 1161 | const parts: string[] = []; |
| 1162 | |
| 1163 | for (const member of list) { |
| 1164 | if ("items" in member) { |
| 1165 | parts.push(serializeInnerList(member)); |
| 1166 | } else { |
| 1167 | parts.push(serializeItemInternal(member)); |
| 1168 | } |
| 1169 | } |
| 1170 | |
| 1171 | return parts.join(", "); |
| 1172 | } |
| 1173 | |
| 1174 | /** |
| 1175 | * Serializes a Dictionary to a string. |
no test coverage detected