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