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

◆ MoveToAttribute()

bool System.Xml.Schema.AxisStack.MoveToAttribute ( string name,
string URN,
int depth )
inlinepackage

Definition at line 91 of file AxisStack.cs.

92 {
94 {
95 return false;
96 }
98 {
99 return false;
100 }
101 bool result = false;
102 if (_subtree.TopNode.Input == null)
103 {
104 if (!_subtree.IsDss)
105 {
106 return depth == 1;
107 }
108 return true;
109 }
110 for (int i = 0; i < _stack.Count; i++)
111 {
112 AxisElement axisElement = (AxisElement)_stack[i];
113 if (axisElement.isMatch && axisElement.CurNode == _subtree.TopNode.Input)
114 {
115 result = true;
116 }
117 }
118 return result;
119 }
readonly ForwardAxis _subtree
Definition AxisStack.cs:9
readonly ArrayList _stack
Definition AxisStack.cs:7
static bool Equal(string thisname, string thisURN, string name, string URN)
Definition AxisStack.cs:39

References System.Xml.Schema.AxisStack._stack, System.Xml.Schema.AxisStack._subtree, System.Collections.ArrayList.Count, System.Xml.Dictionary, System.Xml.Schema.AxisStack.Equal(), MS.Internal.Xml.XPath.Axis.Input, System.Xml.Schema.ForwardAxis.IsAttribute, System.Xml.Schema.ForwardAxis.IsDss, MS.Internal.Xml.XPath.Axis.Name, System.Xml.Schema.ForwardAxis.TopNode, and MS.Internal.Xml.XPath.Axis.Urn.