MCPcopy Create free account
hub / github.com/codemix/graph / toStringTokens

Method toStringTokens

packages/graph/src/Steps.ts:2525–2544  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
2547export interface RangeStepConfig extends StepConfig {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected