24 writes to currentNode
System.Private.Xml (24)
System\Xml\XPath\Internal\AttributeQuery.cs (2)
31
currentNode
= qyInput.Advance();
37
currentNode
= currentNode.Clone();
System\Xml\XPath\Internal\BaseAxisQuery.cs (2)
51
this.
currentNode
= other.currentNode;
57
currentNode
= null; // After this current will not point to context node from Evaluate() call
System\Xml\XPath\Internal\CacheChildrenQuery.cs (3)
64
currentNode
= GetNextInput();
77
currentNode
= _elementStk.Pop();
111
currentNode
= _nextInput;
System\Xml\XPath\Internal\ChildrenQuery.cs (1)
51
currentNode
= _iterator.Current;
System\Xml\XPath\Internal\DescendantoverDescendantQuery.cs (2)
37
currentNode
= qyInput.Advance();
48
currentNode
= currentNode.Clone();
System\Xml\XPath\Internal\DescendantQuery.cs (1)
59
currentNode
= _nodeIterator.Current;
System\Xml\XPath\Internal\FilterQuery.cs (1)
53
while ((
currentNode
= qyInput.Advance()) != null)
System\Xml\XPath\Internal\FollowingQuery.cs (1)
77
currentNode
= _iterator.Current;
System\Xml\XPath\Internal\FollSiblingQuery.cs (4)
78
currentNode
= _nextInput;
83
currentNode
= _elementStk.Pop();
90
currentNode
= _nextInput!;
106
currentNode
= null;
System\Xml\XPath\Internal\GroupQuery.cs (1)
15
currentNode
= qyInput.Advance();
System\Xml\XPath\Internal\NamespaceQuery.cs (2)
31
currentNode
= qyInput.Advance();
37
currentNode
= currentNode.Clone();
System\Xml\XPath\Internal\PrecedingQuery.cs (2)
77
currentNode
= _workIterator.Current!;
83
currentNode
= null;
System\Xml\XPath\Internal\PreSiblingQuery.cs (1)
50
while ((
currentNode
= qyInput.Advance()) != null)
System\Xml\XPath\Internal\XPathSelfQuery.cs (1)
15
while ((
currentNode
= qyInput.Advance()) != null)
54 references to currentNode
System.Private.Xml (54)
System\Xml\XPath\Internal\AttributeQuery.cs (8)
32
if (
currentNode
== null)
37
currentNode =
currentNode
.Clone();
38
_onAttribute =
currentNode
.MoveToFirstAttribute();
42
Debug.Assert(
currentNode
!= null);
43
_onAttribute =
currentNode
.MoveToNextAttribute();
48
Debug.Assert(!
currentNode
.NamespaceURI.Equals(XmlReservedNs.NsXmlNs));
49
if (matches(
currentNode
))
52
return
currentNode
;
System\Xml\XPath\Internal\BaseAxisQuery.cs (2)
51
this.currentNode = other.
currentNode
;
75
public override XPathNavigator? Current { get { return
currentNode
; } }
System\Xml\XPath\Internal\CacheChildrenQuery.cs (8)
65
if (
currentNode
== null)
69
if (!
currentNode
.MoveToFirstChild())
88
if (!
currentNode
!.MoveToNext() || !DecideNextNode())
94
if (matches(
currentNode
))
97
return
currentNode
;
107
if (CompareNodes(
currentNode
!, _nextInput) == XmlNodeOrder.After)
109
_elementStk.Push(
currentNode
!);
113
if (!
currentNode
.MoveToFirstChild())
System\Xml\XPath\Internal\ChildrenQuery.cs (1)
52
return
currentNode
;
System\Xml\XPath\Internal\DescendantoverDescendantQuery.cs (12)
39
if (
currentNode
== null)
43
if (matchSelf && matches(
currentNode
))
46
return
currentNode
;
48
currentNode =
currentNode
.Clone();
63
Debug.Assert(
currentNode
!= null);
64
if (matches(
currentNode
))
67
return
currentNode
;
75
Debug.Assert(
currentNode
!= null);
76
if (
currentNode
.MoveToFirstChild())
86
Debug.Assert(
currentNode
!= null);
87
while (!
currentNode
.MoveToNext())
94
bool result =
currentNode
.MoveToParent();
System\Xml\XPath\Internal\DescendantQuery.cs (1)
60
return
currentNode
;
System\Xml\XPath\Internal\FilterQuery.cs (1)
58
return
currentNode
;
System\Xml\XPath\Internal\FollowingQuery.cs (1)
78
return
currentNode
;
System\Xml\XPath\Internal\FollSiblingQuery.cs (6)
69
if (
currentNode
== null)
87
while (
currentNode
.IsDescendant(_nextInput))
89
_elementStk.Push(
currentNode
);
98
while (
currentNode
.MoveToNext())
100
if (matches(
currentNode
))
103
return
currentNode
;
System\Xml\XPath\Internal\GroupQuery.cs (2)
16
if (
currentNode
!= null)
20
return
currentNode
;
System\Xml\XPath\Internal\NamespaceQuery.cs (6)
32
if (
currentNode
== null)
37
currentNode =
currentNode
.Clone();
38
_onNamespace =
currentNode
.MoveToFirstNamespace();
42
_onNamespace =
currentNode
!.MoveToNextNamespace();
47
if (matches(
currentNode
))
50
return
currentNode
;
System\Xml\XPath\Internal\PrecedingQuery.cs (3)
78
if (
currentNode
.IsSamePosition(_ancestorStk.Peek()))
90
if (matches(
currentNode
))
93
return
currentNode
;
System\Xml\XPath\Internal\PreSiblingQuery.cs (1)
52
inputStk.Push(
currentNode
.Clone());
System\Xml\XPath\Internal\XPathSelfQuery.cs (2)
17
if (matches(
currentNode
))
20
return
currentNode
;