1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 17:04:47 +03:00

Vertex is CustomDebugStringConvertible.

This commit is contained in:
Rob Rix 2015-09-25 12:44:20 -04:00
parent 3dc89059ac
commit 18bcad0165

View File

@ -1,4 +1,4 @@
public enum Vertex<Element> {
public enum Vertex<Element>: CustomDebugStringConvertible {
indirect case XY(Element, Memo<Vertex>, Memo<Vertex>)
case End
@ -88,4 +88,11 @@ public enum Vertex<Element> {
return .End
}
}
public var debugDescription: String {
return rowMajor.map {
$0.map { String(reflecting: $0) }.joinWithSeparator("\t")
}.joinWithSeparator("\n")
}
}