Documentation
¶
Index ¶
Constants ¶
View Source
const MaxASTFileSize = 400 * 1024
Variables ¶
This section is empty.
Functions ¶
func HasConflictMarkers ¶
Types ¶
type DiffOptions ¶
type DiffResult ¶
type DiffResult struct {
SrcBytes []byte
DstBytes []byte
SrcFile string
DstFile string
SrcAST *treesitter.ASTNode
DstAST *treesitter.ASTNode
MatchResult *engine.MatchResult
EditScript *actions.EditScript
Envelope *serialize.Envelope
}
func Run ¶
func Run(srcBytes, dstBytes []byte, srcFile, dstFile string, opts DiffOptions) (*DiffResult, error)
Run executes the diffmantic semantic diff pipeline on in-memory buffers. It parses ASTs and computes line partitions concurrently.
func RunFiles ¶
func RunFiles(fileA, fileB string, opts DiffOptions) (*DiffResult, error)
RunFiles reads two files from disk and executes the diffmantic pipeline.
Click to show internal directories.
Click to hide internal directories.