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:
parent
04a207f71b
commit
654492158a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user