mirror of
https://github.com/github/semantic.git
synced 2024-12-25 16:02:43 +03:00
Term is AlgebraicHashable.
This commit is contained in:
parent
586def93cd
commit
31d35c854b
@ -1,4 +1,4 @@
|
||||
public enum Term: CustomDebugStringConvertible, CustomDocConvertible, CustomStringConvertible, Equatable {
|
||||
public enum Term: CustomDebugStringConvertible, CustomDocConvertible, CustomStringConvertible, AlgebraicHashable {
|
||||
public init(_ out: Syntax<Term>) {
|
||||
self = .Roll(out)
|
||||
}
|
||||
@ -27,6 +27,11 @@ public enum Term: CustomDebugStringConvertible, CustomDocConvertible, CustomStri
|
||||
}
|
||||
|
||||
|
||||
public var hash: Hash {
|
||||
return syntax.hash
|
||||
}
|
||||
|
||||
|
||||
public static var Empty: Term {
|
||||
return Term(.Empty)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user