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

◆ MoveToNextNamespace() [2/2]

override bool MS.Internal.Xml.Cache.XPathDocumentNavigator.MoveToNextNamespace ( XPathNamespaceScope scope)
inline

Definition at line 242 of file XPathDocumentNavigator.cs.

243 {
244 XPathNode[] pageNode = _pageCurrent;
245 int num = _idxCurrent;
246 if (pageNode[num].NodeType != XPathNodeType.Namespace)
247 {
248 return false;
249 }
250 do
251 {
252 num = pageNode[num].GetSibling(out pageNode);
253 if (num == 0)
254 {
255 return false;
256 }
257 switch (scope)
258 {
259 case XPathNamespaceScope.Local:
260 {
261 XPathNode[] pageNode2;
262 int parent = pageNode[num].GetParent(out pageNode2);
263 if (parent != _idxParent || pageNode2 != _pageParent)
264 {
265 return false;
266 }
267 break;
268 }
269 case XPathNamespaceScope.ExcludeXml:
270 continue;
271 }
272 break;
273 }
274 while (pageNode[num].IsXmlNamespaceNode);
276 _idxCurrent = num;
277 return true;
278 }

References MS.Internal.Xml.Cache.XPathDocumentNavigator._idxCurrent, MS.Internal.Xml.Cache.XPathDocumentNavigator._idxParent, MS.Internal.Xml.Cache.XPathDocumentNavigator._pageCurrent, MS.Internal.Xml.Cache.XPathDocumentNavigator._pageParent, System.Xml.Dictionary, MS.Internal.Xml.Cache.XPathNode.GetParent(), and MS.Internal.Xml.Cache.XPathDocumentNavigator.NodeType.