ExAST.Diff.Patcher (ExAST v0.11.0)

Copy Markdown View Source

Applies diff edits to produce patched source code.

Takes a diff result and builds Sourceror patches for updates, deletes, and inserts, then applies them in a single pass to the left source. Move edits are skipped since they represent reorders without content changes.

Summary

Functions

apply(result)

@spec apply(ExAST.Diff.Result.t()) :: String.t()