# `ExAST.Diff.Patcher`
[🔗](https://github.com/elixir-vibe/ex_ast/blob/v0.11.0/lib/ex_ast/diff/patcher.ex#L1)

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.

# `apply`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
