158 references to XmlNodeKindFlags
System.Private.Xml (158)
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (10)
766
return (typ.NodeKinds & (
XmlNodeKindFlags
.Attribute |
XmlNodeKindFlags
.Namespace)) !=
XmlNodeKindFlags
.None;
774
return !typ.IsNode || (typ.NodeKinds & ~(
XmlNodeKindFlags
.Attribute |
XmlNodeKindFlags
.Namespace)) !=
XmlNodeKindFlags
.None;
905
if ((typ.NodeKinds &
XmlNodeKindFlags
.Attribute) !=
XmlNodeKindFlags
.None)
916
if ((typ.NodeKinds &
XmlNodeKindFlags
.Namespace) !=
XmlNodeKindFlags
.None)
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (56)
1919
XmlNodeKindFlags
kinds;
1931
kinds =
XmlNodeKindFlags
.Element;
1962
if (kinds ==
XmlNodeKindFlags
.Content)
2412
XmlNodeKindFlags
kinds;
2426
kinds =
XmlNodeKindFlags
.Element;
2438
kinds = ((ndDod.XmlType!.NodeKinds &
XmlNodeKindFlags
.Attribute) != 0) ?
XmlNodeKindFlags
.Any :
XmlNodeKindFlags
.Content;
2679
XmlNodeKindFlags
.Any, null, TriState.False, null);
2689
XmlNodeKindFlags
.Any, null, TriState.True, null);
2699
XmlNodeKindFlags
.Any, null, TriState.False, null);
2709
XmlNodeKindFlags
.Any, null, TriState.True, null);
2719
XmlNodeKindFlags
.Any, null, TriState.Unknown, null);
2729
XmlNodeKindFlags
.Any, null, TriState.Unknown, null);
2739
XmlNodeKindFlags
.Any, null, TriState.Unknown, null);
2749
XmlNodeKindFlags
.Any, null, TriState.Unknown, ndRange.Right);
3235
XmlNodeKindFlags
kinds;
3250
kinds =
XmlNodeKindFlags
.None;
3253
if ((object)typItem == (object)TypeFactory.Element) kinds |=
XmlNodeKindFlags
.Element;
3254
else if ((object)typItem == (object)TypeFactory.Attribute) kinds |=
XmlNodeKindFlags
.Attribute;
3255
else if ((object)typItem == (object)TypeFactory.Text) kinds |=
XmlNodeKindFlags
.Text;
3256
else if ((object)typItem == (object)TypeFactory.Document) kinds |=
XmlNodeKindFlags
.Document;
3257
else if ((object)typItem == (object)TypeFactory.Comment) kinds |=
XmlNodeKindFlags
.Comment;
3258
else if ((object)typItem == (object)TypeFactory.PI) kinds |=
XmlNodeKindFlags
.PI;
3259
else if ((object)typItem == (object)TypeFactory.Namespace) kinds |=
XmlNodeKindFlags
.Namespace;
3263
Debug.Assert((typDerived.NodeKinds & kinds) !=
XmlNodeKindFlags
.None, "Normalizer should have taken care of case where node kinds are disjoint.");
3271
kinds = ~kinds &
XmlNodeKindFlags
.Any;
3277
case
XmlNodeKindFlags
.Element: kindsRuntime = XPathNodeType.Element; break;
3278
case
XmlNodeKindFlags
.Attribute: kindsRuntime = XPathNodeType.Attribute; break;
3279
case
XmlNodeKindFlags
.Namespace: kindsRuntime = XPathNodeType.Namespace; break;
3280
case
XmlNodeKindFlags
.PI: kindsRuntime = XPathNodeType.ProcessingInstruction; break;
3281
case
XmlNodeKindFlags
.Comment: kindsRuntime = XPathNodeType.Comment; break;
3282
case
XmlNodeKindFlags
.Document: kindsRuntime = XPathNodeType.Root; break;
3303
if ((kinds &
XmlNodeKindFlags
.Document) != 0) kindsUnion |= (1 << (int)XPathNodeType.Root);
3304
if ((kinds &
XmlNodeKindFlags
.Element) != 0) kindsUnion |= (1 << (int)XPathNodeType.Element);
3305
if ((kinds &
XmlNodeKindFlags
.Attribute) != 0) kindsUnion |= (1 << (int)XPathNodeType.Attribute);
3306
if ((kinds &
XmlNodeKindFlags
.Text) != 0)
3310
if ((kinds &
XmlNodeKindFlags
.Comment) != 0) kindsUnion |= (1 << (int)XPathNodeType.Comment);
3311
if ((kinds &
XmlNodeKindFlags
.PI) != 0) kindsUnion |= (1 << (int)XPathNodeType.ProcessingInstruction);
3312
if ((kinds &
XmlNodeKindFlags
.Namespace) != 0) kindsUnion |= (1 << (int)XPathNodeType.Namespace);
3484
XmlNodeKindFlags
.Any, null, TriState.Unknown, null);
3494
XmlNodeKindFlags
.Any, null, TriState.Unknown, null);
3946
XmlNodeKindFlags
kinds, QilName? ndName, TriState orSelf, QilNode? ndEnd)
3982
XmlNodeKindFlags
kinds, QilName? ndName, TriState orSelf)
4574
private static XPathNodeType QilXmlToXPathNodeType(
XmlNodeKindFlags
xmlTypes)
4578
case
XmlNodeKindFlags
.Element: return XPathNodeType.Element;
4579
case
XmlNodeKindFlags
.Attribute: return XPathNodeType.Attribute;
4580
case
XmlNodeKindFlags
.Text: return XPathNodeType.Text;
4581
case
XmlNodeKindFlags
.Comment: return XPathNodeType.Comment;
4583
Debug.Assert(xmlTypes ==
XmlNodeKindFlags
.PI);
4611
private void LoadSelectFilter(
XmlNodeKindFlags
xmlTypes, QilName? ndName)
4616
Debug.Assert(xmlTypes ==
XmlNodeKindFlags
.Element);
4623
Debug.Assert(!isXmlTypeUnion || (xmlTypes &
XmlNodeKindFlags
.Content) ==
XmlNodeKindFlags
.Content);
4627
if ((xmlTypes &
XmlNodeKindFlags
.Attribute) != 0)
4649
private static bool IsNodeTypeUnion(
XmlNodeKindFlags
xmlTypes)
System\Xml\Xsl\QIL\QilTypeChecker.cs (1)
972
if ((node.Child.XmlType!.NodeKinds &
XmlNodeKindFlags
.Document) != 0)
System\Xml\Xsl\XmlQueryType.cs (4)
61
public abstract
XmlNodeKindFlags
NodeKinds { get; }
531
if (this.TypeCode == other.TypeCode && (this.NodeKinds & (
XmlNodeKindFlags
.Document |
XmlNodeKindFlags
.Element |
XmlNodeKindFlags
.Attribute)) != 0)
System\Xml\Xsl\XmlQueryTypeFactory.cs (17)
114
public static XmlQueryType NodeChoice(
XmlNodeKindFlags
kinds)
339
private readonly
XmlNodeKindFlags
_nodeKinds;
517
XmlTypeCode.Item =>
XmlNodeKindFlags
.Any,
518
XmlTypeCode.Node =>
XmlNodeKindFlags
.Any,
519
XmlTypeCode.Document =>
XmlNodeKindFlags
.Document,
520
XmlTypeCode.Element =>
XmlNodeKindFlags
.Element,
521
XmlTypeCode.Attribute =>
XmlNodeKindFlags
.Attribute,
522
XmlTypeCode.Namespace =>
XmlNodeKindFlags
.Namespace,
523
XmlTypeCode.ProcessingInstruction =>
XmlNodeKindFlags
.PI,
524
XmlTypeCode.Comment =>
XmlNodeKindFlags
.Comment,
525
XmlTypeCode.Text =>
XmlNodeKindFlags
.Text,
526
_ =>
XmlNodeKindFlags
.None,
611
public override
XmlNodeKindFlags
NodeKinds
694
private readonly
XmlNodeKindFlags
_nodeKinds;
700
public static XmlQueryType Create(
XmlNodeKindFlags
nodeKinds)
881
public override
XmlNodeKindFlags
NodeKinds
1077
public override
XmlNodeKindFlags
NodeKinds
System\Xml\Xsl\XPath\XPathBuilder.cs (34)
320
public static
XmlNodeKindFlags
AxisTypeMask(
XmlNodeKindFlags
inputTypeMask, XPathNodeType nodeType, XPathAxis xpathAxis)
322
return (
XmlNodeKindFlags
)(
330
XmlNodeKindFlags
original = qilAxis.XmlType!.NodeKinds;
331
XmlNodeKindFlags
required = AxisTypeMask(original, nodeType, xpathAxis);
377
private static readonly
XmlNodeKindFlags
[] s_XPathNodeType2QilXmlNodeKind = {
378
/*Root */
XmlNodeKindFlags
.Document,
379
/*Element */
XmlNodeKindFlags
.Element,
380
/*Attribute */
XmlNodeKindFlags
.Attribute,
381
/*Namespace */
XmlNodeKindFlags
.Namespace,
382
/*Text */
XmlNodeKindFlags
.Text,
383
/*SignificantWhitespace*/
XmlNodeKindFlags
.Text,
384
/*Whitespace */
XmlNodeKindFlags
.Text,
385
/*ProcessingInstruction*/
XmlNodeKindFlags
.PI,
386
/*Comment */
XmlNodeKindFlags
.Comment,
387
/*All */
XmlNodeKindFlags
.Any
728
private static readonly
XmlNodeKindFlags
[] s_XPathAxisMask = {
729
/*Unknown */
XmlNodeKindFlags
.None,
730
/*Ancestor */
XmlNodeKindFlags
.Element |
XmlNodeKindFlags
.Document,
731
/*AncestorOrSelf */
XmlNodeKindFlags
.Any,
732
/*Attribute */
XmlNodeKindFlags
.Attribute,
733
/*Child */
XmlNodeKindFlags
.Content,
734
/*Descendant */
XmlNodeKindFlags
.Content,
735
/*DescendantOrSelf*/
XmlNodeKindFlags
.Any,
736
/*Following */
XmlNodeKindFlags
.Content,
737
/*FollowingSibling*/
XmlNodeKindFlags
.Content,
738
/*Namespace */
XmlNodeKindFlags
.Namespace,
739
/*Parent */
XmlNodeKindFlags
.Element |
XmlNodeKindFlags
.Document,
740
/*Preceding */
XmlNodeKindFlags
.Content,
741
/*PrecedingSibling*/
XmlNodeKindFlags
.Content,
742
/*Self */
XmlNodeKindFlags
.Any,
743
/*Root */
XmlNodeKindFlags
.Document,
System\Xml\Xsl\Xslt\MatcherBuilder.cs (13)
95
private
XmlNodeKindFlags
_nodeKind;
100
public
XmlNodeKindFlags
NodeKind
137
_nodeKind ==
XmlNodeKindFlags
.Element || _nodeKind ==
XmlNodeKindFlags
.Attribute || _nodeKind ==
XmlNodeKindFlags
.PI,
162
_nodeKind =
XmlNodeKindFlags
.None;
182
XmlNodeKindFlags
nodeKinds = isType.Right.XmlType!.NodeKinds;
344
case
XmlNodeKindFlags
.Element: _elementPatterns.Add(pattern); break;
345
case
XmlNodeKindFlags
.Attribute: _attributePatterns.Add(pattern); break;
346
case
XmlNodeKindFlags
.Text: _textPatterns.Add(pattern); break;
347
case
XmlNodeKindFlags
.Document: _documentPatterns.Add(pattern); break;
348
case
XmlNodeKindFlags
.Comment: _commentPatterns.Add(pattern); break;
349
case
XmlNodeKindFlags
.PI: _piPatterns.Add(pattern); break;
System\Xml\Xsl\Xslt\QilGenerator.cs (22)
115
_textOrAttributeType = T.NodeChoice(
XmlNodeKindFlags
.Text |
XmlNodeKindFlags
.Attribute);
1294
private const
XmlNodeKindFlags
InvalidatingNodes = (
XmlNodeKindFlags
.Attribute |
XmlNodeKindFlags
.Namespace);
1300
if ((node.XmlType!.NodeKinds & InvalidatingNodes) !=
XmlNodeKindFlags
.None)
1304
if (node.XmlType.NodeKinds ==
XmlNodeKindFlags
.Element)
1316
else if (node.XmlType.NodeKinds ==
XmlNodeKindFlags
.Document)
1322
else if ((node.XmlType.NodeKinds & (
XmlNodeKindFlags
.Element |
XmlNodeKindFlags
.Document)) ==
XmlNodeKindFlags
.None)
1340
if ((selectExpr.XmlType.NodeKinds & InvalidatingNodes) !=
XmlNodeKindFlags
.None)
1345
if (selectExpr.XmlType.IsNotRtf && (selectExpr.XmlType.NodeKinds &
XmlNodeKindFlags
.Document) ==
XmlNodeKindFlags
.None)
1854
XmlNodeKindFlags
nodeKinds = current.XmlType!.NodeKinds;
1865
case
XmlNodeKindFlags
.Document: return _f.IsType(testNode, T.Document);
1866
case
XmlNodeKindFlags
.Element: result = _f.IsType(testNode, T.Element); break;
1867
case
XmlNodeKindFlags
.Attribute: result = _f.IsType(testNode, T.Attribute); break;
1868
case
XmlNodeKindFlags
.Text: return _f.IsType(testNode, T.Text);
1869
case
XmlNodeKindFlags
.Comment: return _f.IsType(testNode, T.Comment);
1870
case
XmlNodeKindFlags
.PI: return _f.And(_f.IsType(testNode, T.PI), _f.Eq(_f.LocalNameOf(testNode), _f.LocalNameOf(current)));
1871
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)
106
XmlNodeKindFlags
intersection = XPathBuilder.AxisTypeMask(itr.XmlType!.NodeKinds, nodeType, xpathAxis);