Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MoveToChild()

bool System.Xml.Schema.AxisElement.MoveToChild ( string name,
string URN,
int depth,
ForwardAxis parent )
inlinepackage

Definition at line 48 of file AxisElement.cs.

49 {
50 if (Asttree.IsAttribute(curNode))
51 {
52 return false;
53 }
54 if (isMatch)
55 {
56 isMatch = false;
57 }
58 if (!AxisStack.Equal(curNode.Name, curNode.Urn, name, URN))
59 {
60 return false;
61 }
62 if (curDepth == -1)
63 {
64 SetDepth(depth);
65 }
66 else if (depth > curDepth)
67 {
68 return false;
69 }
70 if (curNode == parent.TopNode)
71 {
72 isMatch = true;
73 return true;
74 }
75 DoubleLinkAxis ast = (DoubleLinkAxis)curNode.Next;
76 if (Asttree.IsAttribute(ast))
77 {
78 isMatch = true;
79 return false;
80 }
81 curNode = ast;
82 curDepth++;
83 return false;
84 }

References System.Xml.Schema.AxisElement.curDepth, System.Xml.Schema.AxisElement.curNode, System.Xml.Dictionary, System.Xml.Schema.AxisStack.Equal(), System.Xml.Schema.Asttree.IsAttribute(), System.Xml.Schema.AxisElement.isMatch, MS.Internal.Xml.XPath.Axis.Name, System.Xml.Schema.DoubleLinkAxis.Next, System.Xml.Schema.AxisElement.SetDepth(), System.Xml.Schema.ForwardAxis.TopNode, and MS.Internal.Xml.XPath.Axis.Urn.