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

Method StructuredDump

texteditor/difflib/bytes/bytes.go:654–661  ·  view source on GitHub ↗
(tag byte, x [][]byte, low int, high int)

Source from the content-addressed store, hash-verified

652}
653
654func (d *Differ) StructuredDump(tag byte, x [][]byte, low int, high int) (out []DiffLine) {
655 size := high - low
656 out = make([]DiffLine, size)
657 for i := 0; i < size; i++ {
658 out[i] = NewDiffLine(tag, x[i+low])
659 }
660 return out
661}
662
663func (d *Differ) Dump(tag []byte, x [][]byte, low int, high int) (out [][]byte) {
664 // Generate comparison results for a same-tagged range.

Callers 2

TestDifferStructuredDumpFunction · 0.95
DumpMethod · 0.95

Calls 1

NewDiffLineFunction · 0.70

Tested by 1

TestDifferStructuredDumpFunction · 0.76