1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Symbol nodes can be equated.

This commit is contained in:
Rob Rix 2015-09-18 16:31:05 -04:00
parent 04a207f71b
commit 654492158a

View File

@ -67,6 +67,8 @@ func == (left: Swift, right: Swift) -> Bool {
return k1 == k2 && v1 == v2
case let (.Branch(n1, b1), .Branch(n2, b2)):
return n1 == n2 && b1 == b2
case let (.Symbol(s, u), .Symbol(t, v)):
return s == t && u == v
default:
return false
}