(value, ctx, ignored, recurseTimes)
| 2392 | } |
| 2393 | |
| 2394 | function formatSet(value, ctx, ignored, recurseTimes) { |
| 2395 | const length = value.size; |
| 2396 | const maxLength = MathMin(MathMax(0, ctx.maxArrayLength), length); |
| 2397 | const remaining = length - maxLength; |
| 2398 | const output = []; |
| 2399 | ctx.indentationLvl += 2; |
| 2400 | let i = 0; |
| 2401 | for (const v of value) { |
| 2402 | if (i >= maxLength) break; |
| 2403 | ArrayPrototypePush(output, formatValue(ctx, v, recurseTimes)); |
| 2404 | i++; |
| 2405 | } |
| 2406 | if (remaining > 0) { |
| 2407 | ArrayPrototypePush(output, remainingText(remaining)); |
| 2408 | } |
| 2409 | ctx.indentationLvl -= 2; |
| 2410 | return output; |
| 2411 | } |
| 2412 | |
| 2413 | function formatMap(value, ctx, ignored, recurseTimes) { |
| 2414 | const length = value.size; |
nothing calls this directly
no test coverage detected
searching dependent graphs…