1
1
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:
Rob Rix 2015-09-15 13:49:23 -04:00
parent 6724c834e5
commit 41bba38001

View File

@ -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 {