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

Function getChangedRanges

src/cm/tagAutoRename.ts:90–96  ·  view source on GitHub ↗
(transaction: Transaction)

Source from the content-addressed store, hash-verified

88}
89
90function getChangedRanges(transaction: Transaction): ChangedRange[] {
91 const ranges: ChangedRange[] = [];
92 transaction.changes.iterChanges((fromA, toA) => {
93 ranges.push({ fromA, toA });
94 });
95 return ranges;
96}
97
98function touchesRange(change: ChangedRange, from: number, to: number): boolean {
99 if (change.fromA === change.toA) {

Callers 1

createPairedRenameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected