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

◆ CheckAxis()

XPathAxis System.Xml.Xsl.XPath.XPathScanner.CheckAxis ( )
inlineprivate

Definition at line 363 of file XPathScanner.cs.

364 {
365 _kind = LexKind.Axis;
366 switch (_name)
367 {
368 case "ancestor":
369 return XPathAxis.Ancestor;
370 case "ancestor-or-self":
371 return XPathAxis.AncestorOrSelf;
372 case "attribute":
373 return XPathAxis.Attribute;
374 case "child":
375 return XPathAxis.Child;
376 case "descendant":
377 return XPathAxis.Descendant;
378 case "descendant-or-self":
379 return XPathAxis.DescendantOrSelf;
380 case "following":
381 return XPathAxis.Following;
382 case "following-sibling":
383 return XPathAxis.FollowingSibling;
384 case "namespace":
385 return XPathAxis.Namespace;
386 case "parent":
387 return XPathAxis.Parent;
388 case "preceding":
389 return XPathAxis.Preceding;
390 case "preceding-sibling":
391 return XPathAxis.PrecedingSibling;
392 case "self":
393 return XPathAxis.Self;
394 default:
395 _kind = LexKind.Name;
396 return XPathAxis.Unknown;
397 }
398 }

References System.Xml.Xsl.XPath.XPathScanner._kind, and System.Xml.Xsl.XPath.XPathScanner._name.

Referenced by System.Xml.Xsl.XPath.XPathScanner.NextLex().