MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / mapEditedRange

Function mapEditedRange

src/cm/tagAutoRename.ts:105–110  ·  view source on GitHub ↗
(transaction: Transaction, from: number, to: number)

Source from the content-addressed store, hash-verified

103}
104
105function mapEditedRange(transaction: Transaction, from: number, to: number) {
106 return {
107 from: transaction.changes.mapPos(from, -1),
108 to: transaction.changes.mapPos(to, 1),
109 };
110}
111
112function createPairedRename(transaction: Transaction): ChangeSpec | null {
113 if (

Callers 1

createPairedRenameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected