1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Use accurate ranges where possible.

This commit is contained in:
Rob Rix 2015-11-02 16:07:57 -05:00
parent 144f6ba2c2
commit 1027f6b67f

View File

@ -4,7 +4,7 @@ func unified(patch: Patch<Term>, source: String) -> String {
}
private func range(patch: Patch<Term>) -> Range<Int>? {
return nil
return patch.state.after?.extract.range
}
func unified(diff: Diff, before: String, after: String) -> String {