| 2523 | } |
| 2524 | |
| 2525 | public override toStringTokens(): readonly StepStringToken[] { |
| 2526 | const { stepLabels, condition } = this.config; |
| 2527 | |
| 2528 | const tokens: StepStringToken[] = [ |
| 2529 | { kind: "start" }, |
| 2530 | { kind: "name", value: this.name }, |
| 2531 | { kind: "condition", value: condition }, |
| 2532 | ]; |
| 2533 | if (stepLabels !== undefined && stepLabels.length > 0) { |
| 2534 | tokens.push({ kind: "aliases", value: stepLabels }); |
| 2535 | } |
| 2536 | if (this.traversed > 0) { |
| 2537 | tokens.push({ kind: "stat", key: "traversed", value: this.traversed }); |
| 2538 | } |
| 2539 | if (this.emitted > 0) { |
| 2540 | tokens.push({ kind: "stat", key: "emitted", value: this.emitted }); |
| 2541 | } |
| 2542 | tokens.push({ kind: "end" }); |
| 2543 | return tokens; |
| 2544 | } |
| 2545 | } |
| 2546 | |
| 2547 | export interface RangeStepConfig extends StepConfig { |