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