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