6 overrides of NodeType
System.Data.Common (1)
System\Xml\DataDocumentXPathNavigator.cs (1)
40public override XPathNodeType NodeType => _curNode.NodeType;
System.Private.Xml (4)
System\Xml\Cache\XPathDocumentNavigator.cs (1)
155public override XPathNodeType NodeType
System\Xml\Dom\DocumentXPathNavigator.cs (1)
92public override XPathNodeType NodeType
System\Xml\XPath\XPathNavigatorReader.cs (1)
1158public override XPathNodeType NodeType
System\Xml\Xsl\Runtime\RtfNavigator.cs (1)
47public override XPathNodeType NodeType
System.Private.Xml.Linq (1)
System\Xml\XPath\XNodeNavigator.cs (1)
198public override XPathNodeType NodeType
154 references to NodeType
Microsoft.Build.Tasks.Core (2)
XmlPeek.cs (2)
138if (iter.Current.NodeType == XPathNodeType.Attribute 139|| iter.Current.NodeType == XPathNodeType.Text)
System.Private.Xml (152)
System\Xml\Core\XmlWriter.cs (3)
433XPathNodeType nodeType = navigator.NodeType; 502if (navigator.NodeType == XPathNodeType.Element) 535if (navigator.NodeType == XPathNodeType.Element)
System\Xml\Core\XmlWriterAsync.cs (3)
433XPathNodeType nodeType = navigator.NodeType; 502if (navigator.NodeType == XPathNodeType.Element) 535if (navigator.NodeType == XPathNodeType.Element)
System\Xml\XPath\Internal\AbsoluteQuery.cs (1)
25if (context != null && context.NodeType == XPathNodeType.Root)
System\Xml\XPath\Internal\AttributeQuery.cs (1)
62if (context.NodeType == XPathNodeType.Attribute && matches(context))
System\Xml\XPath\Internal\BaseAxisQuery.cs (3)
80TypeTest == e.NodeType || 82TypeTest == XPathNodeType.Text && (e.NodeType == XPathNodeType.Whitespace || e.NodeType == XPathNodeType.SignificantWhitespace)
System\Xml\XPath\Internal\ChildrenQuery.cs (1)
62if (temp.NodeType != XPathNodeType.Attribute && temp.MoveToParent())
System\Xml\XPath\Internal\FollowingQuery.cs (2)
51if (_input!.NodeType == XPathNodeType.Attribute || _input.NodeType == XPathNodeType.Namespace)
System\Xml\XPath\Internal\NamespaceQuery.cs (1)
58Debug.Assert(e.NodeType == XPathNodeType.Namespace);
System\Xml\XPath\Internal\NodeFunctions.cs (1)
78if (nav.NodeType != XPathNodeType.Whitespace || _xsltContext.PreserveWhitespace(nav))
System\Xml\XPath\Internal\PrecedingQuery.cs (2)
60if (last.NodeType == XPathNodeType.Attribute || last.NodeType == XPathNodeType.Namespace)
System\Xml\XPath\Internal\PreSiblingQuery.cs (2)
57if (input.NodeType == XPathNodeType.Attribute || input.NodeType == XPathNodeType.Namespace)
System\Xml\XPath\Internal\XPathAxisIterator.cs (4)
70type == nav.NodeType || 73nav.NodeType == XPathNodeType.Whitespace || 74nav.NodeType == XPathNodeType.SignificantWhitespace 81nav.NodeType == XPathNodeType.Element &&
System\Xml\XPath\XPathNavigator.cs (39)
112switch (NodeType) 405if (NodeType != XPathNodeType.Element) 438if (NodeType != XPathNodeType.Element) 471XPathNodeType nt = NodeType; 553switch (NodeType) 672switch (NodeType) 706if (NodeType == XPathNodeType.Element && localName == LocalName && namespaceURI == NamespaceURI) 723if (((1 << (int)NodeType) & mask) != 0) 745switch (end.NodeType) 756switch (NodeType) 793while (NodeType != XPathNodeType.Element 812switch (end.NodeType) 823switch (NodeType) 860while (((1 << (int)NodeType) & mask) == 0); 871if (NodeType == XPathNodeType.Element && localName == LocalName && namespaceURI == NamespaceURI) 885if (((1 << (int)NodeType) & mask) != 0) 992switch (NodeType) 1039Debug.Assert(schemaType != null || this.NodeType == XPathNodeType.Root, "schemaType != null || this.NodeType == XPathNodeType.Root"); 1302XPathNodeType type = NodeType; 1332if (NodeType == XPathNodeType.Attribute) 1336else if (NodeType == XPathNodeType.Namespace) 1375switch (NodeType) 1422switch (NodeType) 1464if (!IsValidChildType(newChild.NodeType)) 1491if (!IsValidChildType(newChild.NodeType)) 1518if (!IsValidSiblingType(newSibling.NodeType)) 1545if (!IsValidSiblingType(newSibling.NodeType)) 1634if (NodeType == XPathNodeType.Element && atomizedLocalName == LocalName && namespaceURI == NamespaceURI) 1649if (((1 << (int)NodeType) & mask) != 0) 1660if (NodeType == XPathNodeType.Root) 1673switch (navSave.NodeType) 1708switch (NodeType) 1762sb.Append(NodeTypeLetter[(int)NodeType]); 1825switch (n1.NodeType) 1836switch (n2.NodeType) 1934switch (NodeType) 1966switch (NodeType) 2149string result = _nav.NodeType.ToString(); 2150switch (_nav.NodeType)
System\Xml\XPath\XPathNavigatorKeyComparer.cs (1)
44hashCode = (int)nav.NodeType;
System\Xml\XPath\XPathNavigatorReader.cs (16)
120_nodeType = XPathNavigatorReader.ToXmlNodeType(_nav.NodeType); 203if (_nav.NodeType == XPathNodeType.Namespace) 217if (_nav.NodeType == XPathNodeType.Namespace && _nav.LocalName.Length == 0) 231if (_nav.NodeType == XPathNodeType.Namespace && _nav.LocalName.Length != 0) 418switch (nav.NodeType) 465switch (nav.NodeType) 637if (XPathNodeType.Attribute == _nav.NodeType) 641Debug.Assert(XPathNodeType.Namespace == _nav.NodeType); 982if (XPathNodeType.Root == _nav.NodeType) 991else if (XPathNodeType.Attribute == _nav.NodeType) 995_nodeType = ToXmlNodeType(_nav.NodeType); 1001_nodeType = ToXmlNodeType(_nav.NodeType); 1023_nodeType = ToXmlNodeType(_nav.NodeType); 1028Debug.Assert(_nav.NodeType == XPathNodeType.Element, $"{_nav.NodeType} == XPathNodeType.Element"); 1047_nodeType = ToXmlNodeType(_nav.NodeType);
System\Xml\Xsl\Runtime\TreeIterators.cs (3)
30if (input.NodeType == XPathNodeType.Root) 351if (nav.NodeType == XPathNodeType.Attribute || nav.NodeType == XPathNodeType.Namespace)
System\Xml\Xsl\Runtime\XmlNavigatorFilter.cs (3)
218return ((1 << (int)navigator.NodeType) & _mask) == 0; 290return navigator.NodeType == XPathNodeType.Attribute; 384if (navigator.NodeType == XPathNodeType.Attribute)
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (11)
904else if (navigator.NodeType == XPathNodeType.Root) 933if (navigator.NodeType == XPathNodeType.Root) 938Debug.Assert(navigator.NodeType == XPathNodeType.Element, "StartCopy should return true only for Element nodes."); 954if (navigator.NodeType == XPathNodeType.Element) 957Debug.Assert(navigator.NodeType == XPathNodeType.Root, "EndCopy should only be called for Element and Document nodes."); 1043nodeType = navigator.NodeType; 1100switch (navigator.NodeType) 1192Debug.Fail($"Unexpected node type {navigator.NodeType}"); 1205Debug.Assert(navigator.NodeType == XPathNodeType.Element); 1219Debug.Assert(navigator.NodeType == XPathNodeType.Element, "Only elements have namespaces to copy"); 1487if (navigator.NodeType != nodeType)
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (8)
763switch (((XPathNavigator)item).NodeType) 796switch (nav.NodeType) 801return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.New(nav.LocalName, nav.NamespaceURI), XmlSchemaComplexType.UntypedAnyType, false); 803return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.New(nav.LocalName, nav.NamespaceURI), nav.XmlType, nav.SchemaInfo!.SchemaElement!.IsNillable); 807return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.New(nav.LocalName, nav.NamespaceURI), DatatypeImplementation.UntypedAtomicType, false); 809return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.New(nav.LocalName, nav.NamespaceURI), nav.XmlType, false); 812return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.Wildcard, XmlSchemaComplexType.AnyType, false); 1078Debug.Assert(node.NodeType == XPathNodeType.Namespace);
System\Xml\Xsl\Runtime\XmlSequenceWriter.cs (7)
166if (nav.NodeType == XPathNodeType.Attribute || nav.NodeType == XPathNodeType.Namespace) 208nodeType = nav.NodeType; 242if (nav.NodeType == XPathNodeType.Element) 267if (nav.NodeType == XPathNodeType.Element) 280switch (nav.NodeType) 319Debug.Fail($"Unexpected node type {nav.NodeType}");
System\Xml\Xsl\Runtime\XsltLibrary.cs (2)
529XPathNodeType nt1 = nav1.NodeType; 530XPathNodeType nt2 = nav2.NodeType;
System\Xml\Xsl\XsltOld\ActionFrame.cs (4)
271XPathNodeType type = _nodeSet.Current!.NodeType; 281type = _nodeSet.Current.NodeType; 294XPathNodeType type = _newNodeSet.Current!.NodeType; 304type = _newNodeSet.Current.NodeType;
System\Xml\Xsl\XsltOld\CopyAction.cs (2)
76if (frame.Node!.NodeType == XPathNodeType.Element) 83if (frame.Node!.NodeType == XPathNodeType.Element && !_empty)
System\Xml\Xsl\XsltOld\CopyAttributesAction.cs (7)
46Debug.Assert(frame.Node!.NodeType == XPathNodeType.Attribute); 58Debug.Assert(frame.Node!.NodeType == XPathNodeType.Attribute); 70Debug.Assert(frame.Node!.NodeType == XPathNodeType.Attribute); 82Debug.Assert(frame.Node!.NodeType == XPathNodeType.Attribute); 102Debug.Assert(node.NodeType == XPathNodeType.Attribute); 108Debug.Assert(node.NodeType == XPathNodeType.Attribute); 114Debug.Assert(node.NodeType == XPathNodeType.Attribute);
System\Xml\Xsl\XsltOld\CopyNamespacesAction.cs (3)
43Debug.Assert(frame.Node!.NodeType == XPathNodeType.Namespace); 55Debug.Assert(frame.Node!.NodeType == XPathNodeType.Namespace); 67Debug.Assert(frame.Node!.NodeType == XPathNodeType.Namespace);
System\Xml\Xsl\XsltOld\CopyNodeSetAction.cs (1)
59XPathNodeType nodeType = frame.Node!.NodeType;
System\Xml\Xsl\XsltOld\NavigatorInput.cs (1)
115return _Navigator.NodeType;
System\Xml\Xsl\XsltOld\NumberAction.cs (9)
236if (endNode.NodeType == XPathNodeType.Attribute || endNode.NodeType == XPathNodeType.Namespace) 258startNode.NodeType == XPathNodeType.Root // we are at root 342Debug.Assert(nav.NodeType != XPathNodeType.Attribute && nav.NodeType != XPathNodeType.Namespace); 419if (countNode.NodeType == XPathNodeType.Attribute || countNode.NodeType == XPathNodeType.Namespace) 465if (contextNode.Name == nav.Name && BasicNodeType(contextNode.NodeType) == BasicNodeType(nav.NodeType))
System\Xml\Xsl\XsltOld\Processor.cs (10)
591if (_stylesheet.Whitespace && n.NodeType == XPathNodeType.Element) 603Debug.Assert(nav.NodeType == XPathNodeType.Element); 609switch (nav.NodeType) 845switch (node.NodeType) 851return BeginEvent(node.NodeType, node.Prefix, node.LocalName, node.NamespaceURI, emptyflag); 875switch (node.NodeType) 904switch (node.NodeType) 911return EndEvent(node.NodeType); 936if (navigator.NodeType == XPathNodeType.Root) 940else if (navigator.NodeType == XPathNodeType.Element)
System\Xml\Xsl\XsltOld\TemplateLookupAction.cs (1)
62switch (node.NodeType)