mirror of
https://github.com/github/semantic.git
synced 2024-11-29 11:02:26 +03:00
Implicit parameters.
This commit is contained in:
parent
ee969a75fa
commit
e1dd859db9
@ -92,8 +92,8 @@ extension Free where B: PatchConvertible, B.Info == A {
|
||||
public typealias Term = Fix<A>
|
||||
|
||||
public var before: Term? {
|
||||
return map { $0.patch.state.before }.iterate { syntax -> Term? in
|
||||
switch syntax {
|
||||
return map { $0.patch.state.before }.iterate {
|
||||
switch $0 {
|
||||
case let .Leaf(a):
|
||||
return .In(.Leaf(a))
|
||||
case let .Indexed(a):
|
||||
@ -105,8 +105,8 @@ extension Free where B: PatchConvertible, B.Info == A {
|
||||
}
|
||||
|
||||
public var after: Term? {
|
||||
return map { $0.patch.state.after }.iterate { syntax -> Term? in
|
||||
switch syntax {
|
||||
return map { $0.patch.state.after }.iterate {
|
||||
switch $0 {
|
||||
case let .Leaf(a):
|
||||
return .In(.Leaf(a))
|
||||
case let .Indexed(a):
|
||||
|
Loading…
Reference in New Issue
Block a user