mirror of
https://github.com/github/semantic.git
synced 2024-11-25 21:43:07 +03:00
Document Cofree.extract
.
This commit is contained in:
parent
ab3d297d95
commit
7bff8f6f50
@ -29,6 +29,7 @@ extension Cofree {
|
|||||||
// MARK: - Comonad
|
// MARK: - Comonad
|
||||||
|
|
||||||
extension Cofree {
|
extension Cofree {
|
||||||
|
/// Returns the value annotating the syntax tree at this node.
|
||||||
public var extract: B {
|
public var extract: B {
|
||||||
switch self {
|
switch self {
|
||||||
case let .Unroll(b, _):
|
case let .Unroll(b, _):
|
||||||
|
Loading…
Reference in New Issue
Block a user