Documentation ¶
Overview ¶
Package diff implements the Myers diff algorithm.
Package diff supports a pluggable diff algorithm.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ApplyEdits ¶
func SortTextEdits ¶
func SortTextEdits(d []TextEdit)
Types ¶
type Op ¶
type Op struct { Kind OpKind Content []string // content from b I1, I2 int // indices of the line in a J1 int // indices of the line in b, J2 implied by len(Content) }
func Operations ¶
Operations returns the list of operations to convert a into b, consolidating operations for multiple lines and not including equal lines.
Directories ¶
Path | Synopsis |
---|---|
Package difftest supplies a set of tests that will operate on any implementation of a diff algorithm as exposed by "github.com/Andyfoo/golang/x/tools/internal/lsp/diff"
|
Package difftest supplies a set of tests that will operate on any implementation of a diff algorithm as exposed by "github.com/Andyfoo/golang/x/tools/internal/lsp/diff" |
Package myers implements the Myers diff algorithm.
|
Package myers implements the Myers diff algorithm. |
Click to show internal directories.
Click to hide internal directories.