1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

The private properties are implementation details.

This commit is contained in:
Rob Rix 2015-11-04 16:14:43 -05:00
parent c1f3b5e01f
commit 63aaa39ba4

View File

@ -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> {