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

◆ GetContentChild() [2/2]

static bool MS.Internal.Xml.Cache.XPathNodeHelper.GetContentChild ( ref XPathNode[] pageNode,
ref int idxNode,
XPathNodeType typ )
inlinestatic

Definition at line 159 of file XPathNodeHelper.cs.

160 {
161 XPathNode[] pageNode2 = pageNode;
162 int idxNode2 = idxNode;
163 if (pageNode2[idxNode2].HasContentChild)
164 {
165 int contentKindMask = XPathNavigator.GetContentKindMask(typ);
166 GetChild(ref pageNode2, ref idxNode2);
167 do
168 {
169 if (((1 << (int)pageNode2[idxNode2].NodeType) & contentKindMask) != 0)
170 {
171 if (typ == XPathNodeType.Attribute)
172 {
173 return false;
174 }
175 pageNode = pageNode2;
176 idxNode = idxNode2;
177 return true;
178 }
179 idxNode2 = pageNode2[idxNode2].GetSibling(out pageNode2);
180 }
181 while (idxNode2 != 0);
182 }
183 return false;
184 }
static void GetChild(ref XPathNode[] pageNode, ref int idxNode)
static int GetContentKindMask(XPathNodeType type)

References MS.Internal.Xml.Cache.XPathNodeHelper.GetChild(), and System.Xml.XPath.XPathNavigator.GetContentKindMask().