46 references to NodeType
System.Private.Xml (46)
System\Xml\Cache\XPathDocumentBuilder.cs (8)
214Debug.Assert(_pageParent != null && _pageParent[_idxParent].NodeType == XPathNodeType.Element); 290Debug.Assert(_idxParent == 0 || (_pageParent != null && _pageParent[_idxParent].NodeType == XPathNodeType.Element)); 291Debug.Assert(_idxSibling == 0 || (_pageSibling != null && _pageSibling[_idxSibling].NodeType == XPathNodeType.Attribute)); 309Debug.Assert(_pageSibling[_idxSibling].NodeType == XPathNodeType.Attribute); 482Debug.Assert(_pageParent != null && _pageParent[_idxParent].NodeType == XPathNodeType.Element); 494Debug.Assert(_idxSibling == 0 || (_pageSibling != null && _pageSibling[_idxSibling].NodeType == XPathNodeType.Attribute)); 497Debug.Assert(_idxParent == 0 || (_pageParent != null && _pageParent[_idxParent].NodeType == XPathNodeType.Element)); 632Debug.Assert(pageElem == null || pageElem[idxElem].NodeType == XPathNodeType.Element);
System\Xml\Cache\XPathDocumentNavigator.cs (11)
78switch (_pageCurrent[_idxCurrent].NodeType) 97Debug.Assert(_pageCurrent[_idxCurrent].NodeType == XPathNodeType.Text); 120Debug.Assert(page[idx].NodeType == XPathNodeType.Element || page[idx].IsText); 157get { return _pageCurrent[_idxCurrent].NodeType; } 216switch (page![idx].NodeType) 361if (page[idx].NodeType != XPathNodeType.Namespace) 496Debug.Assert(page[idx].NodeType == XPathNodeType.Element); 692if (page[idx].NodeType == XPathNodeType.Element) 877return _pageCurrent[_idxCurrent].NodeType switch 903buf[idx++] = NodeTypeLetter[(int)_pageCurrent[_idxCurrent].NodeType]; 1017return (((1 << (int)_pageCurrent[_idxCurrent].NodeType) & GetKindMask(typ)) != 0);
System\Xml\Cache\XPathNode.cs (6)
225return NodeType == XPathNodeType.Element && 238return NodeType == XPathNodeType.Namespace && localName.Length == 3 && localName == "xml"; 290XPathNodeType xptyp = NodeType; 300get { return XPathNavigator.IsText(NodeType); } 400Debug.Assert(NodeType == XPathNodeType.Element); 411Debug.Assert(NodeType == XPathNodeType.Element);
System\Xml\Cache\XPathNodeHelper.cs (18)
26Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element); 43if (pageElem[idxElem].NodeType == XPathNodeType.Element) 75Debug.Assert(pageNode[idxNode].NodeType == XPathNodeType.Attribute); 92if (idx != 0 && page![idx].NodeType == XPathNodeType.Attribute) 116while (page[idx].NodeType == XPathNodeType.Attribute) 231if (page[idx].NodeType != XPathNodeType.Attribute) 271if (((1 << (int)page![idx].NodeType) & mask) != 0) 301if (page[idx].NodeType != XPathNodeType.Attribute) 310if (((1 << (int)page![idx].NodeType) & mask) != 0) 332Debug.Assert(pageNode[idxNode].NodeType != XPathNodeType.Attribute); 374if (pagePrec[idxPrec].NodeType != XPathNodeType.Attribute) 410while (idx != 0 && page![idx].NodeType == XPathNodeType.Attribute); 431if (page[idx].NodeType == XPathNodeType.Element && (object)page[idx].LocalName == (object?)localName) 529Debug.Assert(page[idx].NodeType != XPathNodeType.Attribute, "Current node should never be an attribute or namespace--caller should handle this case."); 541if (((1 << (int)page[idx].NodeType) & mask) != 0) 552if (((1 << (int)page[idx].NodeType) & mask) != 0) 598if (page[idx].IsText || (page[idx].NodeType == XPathNodeType.Element && page[idx].HasCollapsedText)) 609if (page[idx].IsText || (page[idx].NodeType == XPathNodeType.Element && page[idx].HasCollapsedText))
System\Xml\XPath\XPathDocument.cs (3)
385Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element && pageNmsp[idxNmsp].NodeType == XPathNodeType.Namespace); 398Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element);