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:
parent
d29277a60a
commit
920c08c80e
@ -1,4 +1,5 @@
|
|||||||
public struct Location<A>: SequenceType {
|
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?) {
|
public init(it: A, down: A -> Location?, up: A -> Location?, left: A -> Location?, right: A -> Location?) {
|
||||||
self.it = it
|
self.it = it
|
||||||
_left = left
|
_left = left
|
||||||
@ -7,6 +8,7 @@ public struct Location<A>: SequenceType {
|
|||||||
_down = down
|
_down = down
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The node currently in focus.
|
||||||
public let it: A
|
public let it: A
|
||||||
|
|
||||||
private let _down: A -> Location?
|
private let _down: A -> Location?
|
||||||
|
Loading…
Reference in New Issue
Block a user