4 writes to _idxParent
System.Private.Xml (4)
System\Xml\Cache\XPathDocumentBuilder.cs (4)
94
_idxParent
= _idxSibling = 0;
117
_idxParent
= NewNode(out _pageParent, XPathNodeType.Root, string.Empty, string.Empty, string.Empty, baseUri);
164
_idxParent
= _idxSibling;
280
_idxParent
= _pageParent[_idxParent].GetParent(out _pageParent);
33 references to _idxParent
System.Private.Xml (33)
System\Xml\Cache\XPathDocumentBuilder.cs (33)
118
_doc.SetRootNode(_pageParent,
_idxParent
);
168
hash = (_pageParent[
_idxParent
].LocalNameHashCode & (ElementIndexSize - 1));
169
_elemNameIndex[hash] = LinkSimilarElements(_elemNameIndex[hash].Page, _elemNameIndex[hash].Index, _pageParent,
_idxParent
);
214
Debug.Assert(_pageParent != null && _pageParent[
_idxParent
].NodeType == XPathNodeType.Element);
218
if (!_pageParent[
_idxParent
].HasContentChild)
227
if (_textBldr.LineNumber != _pageParent[
_idxParent
].LineNumber)
231
int posDiff = _textBldr.LinePosition - _pageParent[
_idxParent
].LinePosition;
236
_pageParent[
_idxParent
].SetCollapsedLineInfoOffset(posDiff);
240
_pageParent[
_idxParent
].SetCollapsedValue(_textBldr.ReadText());
247
_pageParent[
_idxParent
].SetValue(_pageSibling[_idxSibling].Value);
252
_pageParent[
_idxParent
].SetEmptyValue(allowShortcutTag);
266
if (_pageParent[
_idxParent
].HasNamespaceDecls)
269
_doc.AddNamespace(_pageParent,
_idxParent
, _pageNmsp, _idxNmsp);
279
_idxSibling =
_idxParent
;
280
_idxParent = _pageParent[
_idxParent
].GetParent(out _pageParent);
290
Debug.Assert(
_idxParent
== 0 || (_pageParent != null && _pageParent[
_idxParent
].NodeType == XPathNodeType.Element));
320
Debug.Assert(
_idxParent
!= 0 && _pageParent != null, "ID attribute must have an element parent");
323
_doc.AddIdElement(id, _pageParent,
_idxParent
);
482
Debug.Assert(_pageParent != null && _pageParent[
_idxParent
].NodeType == XPathNodeType.Element);
496
Debug.Assert(
_idxParent
== 0 || _idxNmsp != 0);
497
Debug.Assert(
_idxParent
== 0 || (_pageParent != null && _pageParent[
_idxParent
].NodeType == XPathNodeType.Element));
518
idxNew = NewNamespaceNode(out pageNew, prefix, namespaceName, _pageParent,
_idxParent
);
556
else if (
_idxParent
!= 0)
567
if (
_idxParent
!= 0)
571
if (!_pageParent[
_idxParent
].HasNamespaceDecls)
577
_pageParent[
_idxParent
].HasNamespaceDecls = true;
676
pageNode[idxNode].Create(info, xptyp,
_idxParent
);
742
if (
_idxParent
!= 0)
746
_pageParent[
_idxParent
].SetParentProperties(xptyp);
751
Debug.Assert(
_idxParent
+ 1 == idxNew || idxNew == 1);
773
Debug.Assert(_textBldr.HasText || (_idxSibling == 0 &&
_idxParent
== 0), "Cannot create empty text node unless it's a top-level text node.");