mirror of
https://github.com/github/semantic.git
synced 2024-11-29 11:02:26 +03:00
Replace CofreeConvertible with CofreeType.
This commit is contained in:
parent
f8cd049280
commit
522757c121
@ -114,12 +114,12 @@ extension Cofree where B: Categorizable {
|
|||||||
|
|
||||||
// MARK: - CofreeConvertible
|
// MARK: - CofreeConvertible
|
||||||
|
|
||||||
public protocol CofreeConvertible {
|
public protocol CofreeType {
|
||||||
typealias Leaf
|
|
||||||
typealias Annotation
|
typealias Annotation
|
||||||
|
typealias Leaf
|
||||||
|
|
||||||
init(cofree: Cofree<Leaf, Annotation>)
|
var extract: Annotation { get }
|
||||||
var cofree: Cofree<Leaf, Annotation> { get }
|
var unwrap: Syntax<Self, Leaf> { get }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user