Documentation
¶
Overview ¶
Package diff computes minimal deltas between the current enriched AST and a previous snapshot.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CursorHash ¶
func CursorHash(roots []*parser.ContextNode) string
func CursorHashFlat ¶
func CursorHashFlat(flat []*parser.ContextNode) string
func SnapshotFromNodes ¶
func SnapshotFromNodes(roots []*parser.ContextNode) map[string]NodeState
Build a NodeState map from enriched nodes.
Types ¶
type Delta ¶
type Delta struct {
NodeID string
OldHash string
NewHash string
OldContent string
NewContent string
Op
}
Click to show internal directories.
Click to hide internal directories.