mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Fix is an enum.
This commit is contained in:
parent
6724c834e5
commit
41bba38001
@ -1,15 +1,15 @@
|
||||
public struct Fix: CustomDebugStringConvertible, CustomDocConvertible, CustomStringConvertible, Equatable {
|
||||
public init(_ roll: () -> Syntax<Fix>) {
|
||||
self.roll = roll
|
||||
}
|
||||
public enum Fix: CustomDebugStringConvertible, CustomDocConvertible, CustomStringConvertible, Equatable {
|
||||
public init(_ out: Syntax<Fix>) {
|
||||
self.init { out }
|
||||
self = .Roll(out)
|
||||
}
|
||||
|
||||
let roll: () -> Syntax<Fix>
|
||||
indirect case Roll(Syntax<Fix>)
|
||||
|
||||
public var out: Syntax<Fix> {
|
||||
return roll()
|
||||
switch self {
|
||||
case let .Roll(s):
|
||||
return s
|
||||
}
|
||||
}
|
||||
|
||||
public var debugDescription: String {
|
||||
|
Loading…
Reference in New Issue
Block a user