MCPcopy Create free account
hub / github.com/cogentcore/core / Reverse

Method Reverse

texteditor/text/diff.go:48–54  ·  view source on GitHub ↗

Reverse returns the reverse-direction diffs, switching a vs. b

()

Source from the content-addressed store, hash-verified

46
47// Reverse returns the reverse-direction diffs, switching a vs. b
48func (di Diffs) Reverse() Diffs {
49 rd := make(Diffs, len(di))
50 for i := range di {
51 rd[i] = DiffOpReverse(di[i])
52 }
53 return rd
54}
55
56func DiffOpString(op difflib.OpCode) string {
57 switch op.Tag {

Callers 4

TestRenderFunction · 0.80
LabelFunction · 0.80
configFunction · 0.80
TestDiffFunction · 0.80

Calls 1

DiffOpReverseFunction · 0.85

Tested by 2

TestRenderFunction · 0.64
TestDiffFunction · 0.64