160 references to XmlNodeKindFlags
System.Data.SqlXml (160)
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (10)
702return (typ.NodeKinds & (XmlNodeKindFlags.Attribute | XmlNodeKindFlags.Namespace)) != XmlNodeKindFlags.None; 709return !typ.IsNode || (typ.NodeKinds & ~(XmlNodeKindFlags.Attribute | XmlNodeKindFlags.Namespace)) != XmlNodeKindFlags.None; 822if ((typ.NodeKinds & XmlNodeKindFlags.Attribute) != XmlNodeKindFlags.None) { 832if ((typ.NodeKinds & XmlNodeKindFlags.Namespace) != XmlNodeKindFlags.None) {
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (56)
1774XmlNodeKindFlags kinds; 1784kinds = XmlNodeKindFlags.Element; 1811if (kinds == XmlNodeKindFlags.Content) { 2237XmlNodeKindFlags kinds; 2249kinds = XmlNodeKindFlags.Element; 2259kinds = ((ndDod.XmlType.NodeKinds & XmlNodeKindFlags.Attribute) != 0) ? XmlNodeKindFlags.Any : XmlNodeKindFlags.Content; 2485XmlNodeKindFlags.Any, null, TriState.False, null); 2494XmlNodeKindFlags.Any, null, TriState.True, null); 2503XmlNodeKindFlags.Any, null, TriState.False, null); 2512XmlNodeKindFlags.Any, null, TriState.True, null); 2521XmlNodeKindFlags.Any, null, TriState.Unknown, null); 2530XmlNodeKindFlags.Any, null, TriState.Unknown, null); 2539XmlNodeKindFlags.Any, null, TriState.Unknown, null); 2548XmlNodeKindFlags.Any, null, TriState.Unknown, ndRange.Right); 3006XmlNodeKindFlags kinds; 3021kinds = XmlNodeKindFlags.None; 3023if ((object) typItem == (object) TypeFactory.Element) kinds |= XmlNodeKindFlags.Element; 3024else if ((object) typItem == (object) TypeFactory.Attribute) kinds |= XmlNodeKindFlags.Attribute; 3025else if ((object) typItem == (object) TypeFactory.Text) kinds |= XmlNodeKindFlags.Text; 3026else if ((object) typItem == (object) TypeFactory.Document) kinds |= XmlNodeKindFlags.Document; 3027else if ((object) typItem == (object) TypeFactory.Comment) kinds |= XmlNodeKindFlags.Comment; 3028else if ((object) typItem == (object) TypeFactory.PI) kinds |= XmlNodeKindFlags.PI; 3029else if ((object) typItem == (object) TypeFactory.Namespace) kinds |= XmlNodeKindFlags.Namespace; 3033Debug.Assert((typDerived.NodeKinds & kinds) != XmlNodeKindFlags.None, "Normalizer should have taken care of case where node kinds are disjoint."); 3040kinds = ~kinds & XmlNodeKindFlags.Any; 3045case XmlNodeKindFlags.Element: kindsRuntime = XPathNodeType.Element; break; 3046case XmlNodeKindFlags.Attribute: kindsRuntime = XPathNodeType.Attribute; break; 3047case XmlNodeKindFlags.Namespace: kindsRuntime = XPathNodeType.Namespace; break; 3048case XmlNodeKindFlags.PI: kindsRuntime = XPathNodeType.ProcessingInstruction; break; 3049case XmlNodeKindFlags.Comment: kindsRuntime = XPathNodeType.Comment; break; 3050case XmlNodeKindFlags.Document: kindsRuntime = XPathNodeType.Root; break; 3070if ((kinds & XmlNodeKindFlags.Document) != 0) kindsUnion |= (1 << (int) XPathNodeType.Root); 3071if ((kinds & XmlNodeKindFlags.Element) != 0) kindsUnion |= (1 << (int) XPathNodeType.Element); 3072if ((kinds & XmlNodeKindFlags.Attribute) != 0) kindsUnion |= (1 << (int) XPathNodeType.Attribute); 3073if ((kinds & XmlNodeKindFlags.Text) != 0) kindsUnion |= (1 << (int) (int) XPathNodeType.Text) | 3076if ((kinds & XmlNodeKindFlags.Comment) != 0) kindsUnion |= (1 << (int) XPathNodeType.Comment); 3077if ((kinds & XmlNodeKindFlags.PI) != 0) kindsUnion |= (1 << (int) XPathNodeType.ProcessingInstruction); 3078if ((kinds & XmlNodeKindFlags.Namespace) != 0) kindsUnion |= (1 << (int) XPathNodeType.Namespace); 3240XmlNodeKindFlags.Any, null, TriState.Unknown, null); 3249XmlNodeKindFlags.Any, null, TriState.Unknown, null); 3659XmlNodeKindFlags kinds, QilName ndName, TriState orSelf, QilNode ndEnd) { 3694XmlNodeKindFlags kinds, QilName ndName, TriState orSelf) { 4235private XPathNodeType QilXmlToXPathNodeType(XmlNodeKindFlags xmlTypes) { 4237case XmlNodeKindFlags.Element: return XPathNodeType.Element; 4238case XmlNodeKindFlags.Attribute: return XPathNodeType.Attribute; 4239case XmlNodeKindFlags.Text: return XPathNodeType.Text; 4240case XmlNodeKindFlags.Comment: return XPathNodeType.Comment; 4242Debug.Assert(xmlTypes == XmlNodeKindFlags.PI); 4268private void LoadSelectFilter(XmlNodeKindFlags xmlTypes, QilName ndName) { 4271Debug.Assert(xmlTypes == XmlNodeKindFlags.Element); 4277Debug.Assert(!isXmlTypeUnion || (xmlTypes & XmlNodeKindFlags.Content) == XmlNodeKindFlags.Content); 4280if ((xmlTypes & XmlNodeKindFlags.Attribute) != 0) { 4299private static bool IsNodeTypeUnion(XmlNodeKindFlags xmlTypes) {
System\Xml\Xsl\QIL\QilTypeChecker.cs (1)
876if ((node.Child.XmlType.NodeKinds & XmlNodeKindFlags.Document) != 0)
System\Xml\Xsl\XmlQueryType.cs (4)
87public abstract XmlNodeKindFlags NodeKinds { get; } 524if (this.TypeCode == other.TypeCode && (this.NodeKinds & (XmlNodeKindFlags.Document | XmlNodeKindFlags.Element | XmlNodeKindFlags.Attribute)) != 0) {
System\Xml\Xsl\XmlQueryTypeFactory.cs (19)
111public static XmlQueryType NodeChoice(XmlNodeKindFlags kinds) { 332private XmlNodeKindFlags nodeKinds; 496case XmlTypeCode.Item: this.nodeKinds = XmlNodeKindFlags.Any; break; 497case XmlTypeCode.Node: this.nodeKinds = XmlNodeKindFlags.Any; break; 498case XmlTypeCode.Document: this.nodeKinds = XmlNodeKindFlags.Document; break; 499case XmlTypeCode.Element: this.nodeKinds = XmlNodeKindFlags.Element; break; 500case XmlTypeCode.Attribute: this.nodeKinds = XmlNodeKindFlags.Attribute; break; 501case XmlTypeCode.Namespace: this.nodeKinds = XmlNodeKindFlags.Namespace; break; 502case XmlTypeCode.ProcessingInstruction: this.nodeKinds = XmlNodeKindFlags.PI; break; 503case XmlTypeCode.Comment: this.nodeKinds = XmlNodeKindFlags.Comment; break; 504case XmlTypeCode.Text: this.nodeKinds = XmlNodeKindFlags.Text; break; 505default: this.nodeKinds = XmlNodeKindFlags.None; break; 581public override XmlNodeKindFlags NodeKinds { 673private XmlNodeKindFlags nodeKinds; 679public static XmlQueryType Create(XmlNodeKindFlags nodeKinds) { 687while (nodeKinds != XmlNodeKindFlags.None) { 690nodeKinds = (XmlNodeKindFlags) Bits.ClearLeast((uint) nodeKinds); 830public override XmlNodeKindFlags NodeKinds { 1019public override XmlNodeKindFlags NodeKinds {
System\Xml\Xsl\XPath\XPathBuilder.cs (34)
269public static XmlNodeKindFlags AxisTypeMask(XmlNodeKindFlags inputTypeMask, XPathNodeType nodeType, XPathAxis xpathAxis) { 270return (XmlNodeKindFlags) ( 277XmlNodeKindFlags original = qilAxis.XmlType.NodeKinds; 278XmlNodeKindFlags required = AxisTypeMask(original, nodeType, xpathAxis); 319static XmlNodeKindFlags[] XPathNodeType2QilXmlNodeKind = { 320/*Root */ XmlNodeKindFlags.Document, 321/*Element */ XmlNodeKindFlags.Element, 322/*Attribute */ XmlNodeKindFlags.Attribute, 323/*Namespace */ XmlNodeKindFlags.Namespace, 324/*Text */ XmlNodeKindFlags.Text, 325/*SignificantWhitespace*/ XmlNodeKindFlags.Text, 326/*Whitespace */ XmlNodeKindFlags.Text, 327/*ProcessingInstruction*/ XmlNodeKindFlags.PI, 328/*Comment */ XmlNodeKindFlags.Comment, 329/*All */ XmlNodeKindFlags.Any 629static XmlNodeKindFlags[] XPathAxisMask = { 630/*Unknown */ XmlNodeKindFlags.None, 631/*Ancestor */ XmlNodeKindFlags.Element | XmlNodeKindFlags.Document, 632/*AncestorOrSelf */ XmlNodeKindFlags.Any, 633/*Attribute */ XmlNodeKindFlags.Attribute, 634/*Child */ XmlNodeKindFlags.Content, 635/*Descendant */ XmlNodeKindFlags.Content, 636/*DescendantOrSelf*/ XmlNodeKindFlags.Any, 637/*Following */ XmlNodeKindFlags.Content, 638/*FollowingSibling*/ XmlNodeKindFlags.Content, 639/*Namespace */ XmlNodeKindFlags.Namespace, 640/*Parent */ XmlNodeKindFlags.Element | XmlNodeKindFlags.Document, 641/*Preceding */ XmlNodeKindFlags.Content, 642/*PrecedingSibling*/ XmlNodeKindFlags.Content, 643/*Self */ XmlNodeKindFlags.Any, 644/*Root */ XmlNodeKindFlags.Document,
System\Xml\Xsl\Xslt\MatcherBuilder.cs (13)
96private XmlNodeKindFlags nodeKind; 101public XmlNodeKindFlags NodeKind { 132nodeKind == XmlNodeKindFlags.Element || nodeKind == XmlNodeKindFlags.Attribute || nodeKind == XmlNodeKindFlags.PI, 156nodeKind = XmlNodeKindFlags.None; 173XmlNodeKindFlags nodeKinds = isType.Right.XmlType.NodeKinds; 312case XmlNodeKindFlags.Element : elementPatterns .Add(pattern); break; 313case XmlNodeKindFlags.Attribute : attributePatterns .Add(pattern); break; 314case XmlNodeKindFlags.Text : textPatterns .Add(pattern); break; 315case XmlNodeKindFlags.Document : documentPatterns .Add(pattern); break; 316case XmlNodeKindFlags.Comment : commentPatterns .Add(pattern); break; 317case XmlNodeKindFlags.PI : piPatterns .Add(pattern); break;
System\Xml\Xsl\Xslt\QilGenerator.cs (22)
110textOrAttributeType = T.NodeChoice(XmlNodeKindFlags.Text | XmlNodeKindFlags.Attribute); 1097private const XmlNodeKindFlags InvalidatingNodes = (XmlNodeKindFlags.Attribute | XmlNodeKindFlags.Namespace); 1102if ((node.XmlType.NodeKinds & InvalidatingNodes) != XmlNodeKindFlags.None) { 1105if (node.XmlType.NodeKinds == XmlNodeKindFlags.Element) { 1115} else if (node.XmlType.NodeKinds == XmlNodeKindFlags.Document) { 1119} else if ((node.XmlType.NodeKinds & (XmlNodeKindFlags.Element | XmlNodeKindFlags.Document)) == XmlNodeKindFlags.None) { 1132if ((selectExpr.XmlType.NodeKinds & InvalidatingNodes) != XmlNodeKindFlags.None) { 1136if (selectExpr.XmlType.IsNotRtf && (selectExpr.XmlType.NodeKinds & XmlNodeKindFlags.Document) == XmlNodeKindFlags.None) { 1554XmlNodeKindFlags nodeKinds = current.XmlType.NodeKinds; 1563case XmlNodeKindFlags.Document : return f.IsType(testNode, T.Document); 1564case XmlNodeKindFlags.Element : result = f.IsType(testNode, T.Element); break; 1565case XmlNodeKindFlags.Attribute : result = f.IsType(testNode, T.Attribute); break; 1566case XmlNodeKindFlags.Text : return f.IsType(testNode, T.Text); 1567case XmlNodeKindFlags.Comment : return f.IsType(testNode, T.Comment); 1568case XmlNodeKindFlags.PI : return f.And(f.IsType(testNode, T.PI) , f.Eq(f.LocalNameOf(testNode), f.LocalNameOf(current))); 1569case XmlNodeKindFlags.Namespace : return f.And(f.IsType(testNode, T.Namespace), f.Eq(f.LocalNameOf(testNode), f.LocalNameOf(current)));
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (1)
99XmlNodeKindFlags intersection = XPathBuilder.AxisTypeMask(itr.XmlType.NodeKinds, nodeType, xpathAxis);