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:
parent
144f6ba2c2
commit
1027f6b67f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user