internal static int GetKindMask(XPathNodeType type) { if (type == XPathNodeType.All) return AllMask; else if (type == XPathNodeType.Text) return TextMask; return (1 << (int)type); }