1 type derived from Axis
System.Private.Xml (1)
System\Xml\Schema\Asttree.cs (1)
407internal sealed class DoubleLinkAxis : Axis
9 instantiations of Axis
System.Private.Xml (9)
System\Xml\XPath\Internal\XPathParser.cs (9)
250opnd = ParseRelativeLocationPath(new Axis(Axis.AxisType.DescendantOrSelf, opnd)); 305return ParseRelativeLocationPath(new Axis(Axis.AxisType.DescendantOrSelf, new Root())); 324opnd = new Axis(Axis.AxisType.DescendantOrSelf, opnd); 359opnd = new Axis(Axis.AxisType.Self, qyInput); 364opnd = new Axis(Axis.AxisType.Parent, qyInput); 451return new Axis(axisType, qyInput, nodePrefix, nodeName, nodeType); 625opnd = new Axis(Axis.AxisType.DescendantOrSelf, new Root()); 640opnd = new Axis(Axis.AxisType.DescendantOrSelf, opnd); 696opnd = ParseRelativePathPattern(new Axis(Axis.AxisType.DescendantOrSelf, opnd));
85 references to Axis
System.Private.Xml (85)
System\Xml\Schema\Asttree.cs (25)
409internal Axis? next; 411internal Axis? Next 418internal DoubleLinkAxis(Axis axis, DoubleLinkAxis? inputaxis) 432internal static DoubleLinkAxis? ConvertTree(Axis? axis) 439return new DoubleLinkAxis(axis, ConvertTree((Axis?)axis.Input)); 524private static bool IsNameTest(Axis ast) 528return ((ast.TypeOfAxis == Axis.AxisType.Child) && (ast.NodeType == XPathNodeType.Element)); 531internal static bool IsAttribute(Axis ast) 533return ((ast.TypeOfAxis == Axis.AxisType.Attribute) && (ast.NodeType == XPathNodeType.Attribute)); 536private static bool IsDescendantOrSelf(Axis ast) 538return ((ast.TypeOfAxis == Axis.AxisType.DescendantOrSelf) && (ast.NodeType == XPathNodeType.All) && (ast.AbbrAxis)); 541internal static bool IsSelf(Axis ast) 543return ((ast.TypeOfAxis == Axis.AxisType.Self) && (ast.NodeType == XPathNodeType.All) && (ast.AbbrAxis)); 568Axis ast = (Axis)(XPathParser.ParseXPathExpression(xpath[i])); 577Axis? stepAst; 580Axis ast = (Axis)AstArray[i]!; 590Axis top = stepAst; 605stepAst = (Axis?)(stepAst.Input); 633stepAst = (Axis?)(stepAst.Input); 648_fAxisArray.Add(new ForwardAxis(DoubleLinkAxis.ConvertTree((Axis)(ast.Input)), false)); 662stepAst = (Axis?)(stepAst.Input); 676_fAxisArray.Add(new ForwardAxis(DoubleLinkAxis.ConvertTree((Axis)(ast.Input)), true)); 693private static void SetURN(Axis axis, XmlNamespaceManager nsmgr)
System\Xml\XPath\Internal\QueryBuilder.cs (21)
56private Query ProcessAxis(Axis root, Flags flags, out Props props) 71Axis? input = root.Input as Axis; 75root.TypeOfAxis == Axis.AxisType.Child && 76input.TypeOfAxis == Axis.AxisType.DescendantOrSelf && input.NodeType == XPathNodeType.All 98if (root.TypeOfAxis == Axis.AxisType.Descendant || root.TypeOfAxis == Axis.AxisType.DescendantOrSelf) 115case Axis.AxisType.Ancestor: 119case Axis.AxisType.AncestorOrSelf: 123case Axis.AxisType.Child: 133case Axis.AxisType.Parent: 136case Axis.AxisType.Descendant: 151case Axis.AxisType.DescendantOrSelf: 166case Axis.AxisType.Preceding: 170case Axis.AxisType.Following: 174case Axis.AxisType.FollowingSibling: 181case Axis.AxisType.PrecedingSibling: 184case Axis.AxisType.Attribute: 187case Axis.AxisType.Self: 190case Axis.AxisType.Namespace: 470result = ProcessAxis((Axis)root, flags, out props);
System\Xml\XPath\Internal\XPathParser.cs (39)
250opnd = ParseRelativeLocationPath(new Axis(Axis.AxisType.DescendantOrSelf, opnd)); 305return ParseRelativeLocationPath(new Axis(Axis.AxisType.DescendantOrSelf, new Root())); 324opnd = new Axis(Axis.AxisType.DescendantOrSelf, opnd); 359opnd = new Axis(Axis.AxisType.Self, qyInput); 364opnd = new Axis(Axis.AxisType.Parent, qyInput); 368Axis.AxisType axisType = Axis.AxisType.Child; 372axisType = Axis.AxisType.Attribute; 381axisType == Axis.AxisType.Attribute ? XPathNodeType.Attribute : 397private Axis ParseNodeTest(AstNode? qyInput, Axis.AxisType axisType, XPathNodeType nodeType) 625opnd = new Axis(Axis.AxisType.DescendantOrSelf, new Root()); 640opnd = new Axis(Axis.AxisType.DescendantOrSelf, opnd); 696opnd = ParseRelativePathPattern(new Axis(Axis.AxisType.DescendantOrSelf, opnd)); 711Axis.AxisType axisType = Axis.AxisType.Child; 715axisType = Axis.AxisType.Attribute; 720if (axisType != Axis.AxisType.Child && axisType != Axis.AxisType.Attribute) 728axisType == Axis.AxisType.Attribute ? XPathNodeType.Attribute : 845private static readonly Dictionary<string, Axis.AxisType> s_AxesTable = CreateAxesTable(); 846private static Dictionary<string, Axis.AxisType> CreateAxesTable() 848Dictionary<string, Axis.AxisType> table = new Dictionary<string, Axis.AxisType>(13); 849table.Add("ancestor", Axis.AxisType.Ancestor); 850table.Add("ancestor-or-self", Axis.AxisType.AncestorOrSelf); 851table.Add("attribute", Axis.AxisType.Attribute); 852table.Add("child", Axis.AxisType.Child); 853table.Add("descendant", Axis.AxisType.Descendant); 854table.Add("descendant-or-self", Axis.AxisType.DescendantOrSelf); 855table.Add("following", Axis.AxisType.Following); 856table.Add("following-sibling", Axis.AxisType.FollowingSibling); 857table.Add("namespace", Axis.AxisType.Namespace); 858table.Add("parent", Axis.AxisType.Parent); 859table.Add("preceding", Axis.AxisType.Preceding); 860table.Add("preceding-sibling", Axis.AxisType.PrecedingSibling); 861table.Add("self", Axis.AxisType.Self); 865private Axis.AxisType GetAxis() 868Axis.AxisType axis;