1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 17:59:10 +03:00

Use Patches’ state directly.

This commit is contained in:
Rob Rix 2015-10-16 09:23:33 -04:00
parent 9b15398f76
commit c1cb797c6f

View File

@ -130,11 +130,11 @@ extension Free where B: PatchType, B.Element == Cofree<A, ()> {
}
public var before: Term? {
return map { $0.patch.state.before }.iterate(self.discardNullTerms)
return map { $0.state.before }.iterate(self.discardNullTerms)
}
public var after: Term? {
return map { $0.patch.state.after }.iterate(self.discardNullTerms)
return map { $0.state.after }.iterate(self.discardNullTerms)
}