mirror of
https://github.com/github/semantic.git
synced 2024-12-01 17:59:10 +03:00
Use Patch
es’ state directly.
This commit is contained in:
parent
9b15398f76
commit
c1cb797c6f
@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user