1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00

Document a couple of fields.

This commit is contained in:
Rob Rix 2015-11-04 12:43:46 -05:00
parent d29277a60a
commit 920c08c80e

View File

@ -1,4 +1,5 @@
public struct Location<A>: SequenceType {
/// Construct a `Location` representing some position within a tree.
public init(it: A, down: A -> Location?, up: A -> Location?, left: A -> Location?, right: A -> Location?) {
self.it = it
_left = left
@ -7,6 +8,7 @@ public struct Location<A>: SequenceType {
_down = down
}
/// The node currently in focus.
public let it: A
private let _down: A -> Location?