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