keyHashCode static method
Computes a hash code for a consistent with sameKey.
Implementation
static int keyHashCode(XPathAtomic a) {
if (a is XPathNumeric) {
final d = a.toDouble();
if (d.isNaN) return 0;
return (d == 0.0 ? 0.0 : d).hashCode;
}
return a.hashCode;
}