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

Replace pures.

This commit is contained in:
Rob Rix 2015-11-05 16:49:24 -05:00
parent 4d4d077e1b
commit 6327829f6e

View File

@ -146,6 +146,8 @@ func parserForType(type: String) -> String throws -> Term {
func refineLeafReplacement(diff: Diff, aString: String, bString: String) -> Diff {
switch diff {
case let .Pure(.Replace(a, b)):
return .Roll((a.extract, b.extract), .Indexed([]))
default:
return diff
}