mirror of
https://github.com/github/semantic.git
synced 2024-11-29 11:02:26 +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