MCPcopy Create free account
hub / github.com/donghaxkim/react-rewrite / getOpLine

Function getOpLine

packages/cli/src/batch-transform.ts:73–75  ·  view source on GitHub ↗

Get the primary line number from any BatchOperation variant.

(op: BatchOperation)

Source from the content-addressed store, hash-verified

71
72/** Get the primary line number from any BatchOperation variant. */
73function getOpLine(op: BatchOperation): number {
74 return op.op === "reorder" ? op.fromLine : op.line;
75}
76
77// ── Types ────────────────────────────────────────────────────────────────
78

Callers 1

executeBatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected