mirror of
https://github.com/github/semantic.git
synced 2024-11-28 01:47:01 +03:00
The private properties are implementation details.
This commit is contained in:
parent
c1f3b5e01f
commit
63aaa39ba4
@ -22,22 +22,18 @@ public struct Location<A>: SequenceType {
|
||||
/// The node currently in focus.
|
||||
public let it: A
|
||||
|
||||
private let _down: A -> Location?
|
||||
public var down: Location? {
|
||||
return _down(it)
|
||||
}
|
||||
|
||||
private let _up: A -> Location?
|
||||
public var up: Location? {
|
||||
return _up(it)
|
||||
}
|
||||
|
||||
private let _left: A -> Location?
|
||||
public var left: Location? {
|
||||
return _left(it)
|
||||
}
|
||||
|
||||
private let _right: A -> Location?
|
||||
public var right: Location? {
|
||||
return _right(it)
|
||||
}
|
||||
@ -133,6 +129,12 @@ public struct Location<A>: SequenceType {
|
||||
}
|
||||
|
||||
|
||||
private let _down: A -> Location?
|
||||
private let _up: A -> Location?
|
||||
private let _left: A -> Location?
|
||||
private let _right: A -> Location?
|
||||
|
||||
|
||||
// MARK: SequenceType
|
||||
|
||||
public func generate() -> AnyGenerator<Location> {
|
||||
|
Loading…
Reference in New Issue
Block a user