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:
parent
3dc89059ac
commit
18bcad0165
@ -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")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user