1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 17:04:47 +03:00

Stub in a function to compute the range of a patch.

This commit is contained in:
Rob Rix 2015-11-02 16:02:23 -05:00
parent 3fbfeccce9
commit 9959c231aa

View File

@ -3,6 +3,10 @@ func unified(patch: Patch<Term>, source: String) -> String {
+ (patch.state.after.map { "{+\($0)+}" } ?? "")
}
private func range(patch: Patch<Term>) -> Range<Int> {
return 0..<0
}
func unified(diff: Diff, before: String, after: String) -> String {
switch diff {
case let .Pure(patch):