Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XPathDocumentKindDescendantIterator.cs
Go to the documentation of this file.
2
4
6{
7 private readonly XPathDocumentNavigator _end;
8
9 private readonly XPathNodeType _typ;
10
11 private bool _matchSelf;
12
14 : base(root)
15 {
16 _typ = typ;
17 _matchSelf = matchSelf;
18 if (root.NodeType != 0)
19 {
20 _end = new XPathDocumentNavigator(root);
22 }
23 }
24
26 : base(iter)
27 {
28 _end = iter._end;
29 _typ = iter._typ;
31 }
32
33 public override XPathNodeIterator Clone()
34 {
36 }
37
38 public override bool MoveNext()
39 {
40 if (_matchSelf)
41 {
42 _matchSelf = false;
44 {
45 pos++;
46 return true;
47 }
48 }
50 {
51 return false;
52 }
53 pos++;
54 return true;
55 }
56}
XPathDocumentKindDescendantIterator(XPathDocumentNavigator root, XPathNodeType typ, bool matchSelf)
override bool MoveToFollowing(string localName, string namespaceURI, XPathNavigator end)