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) 429internal static DoubleLinkAxis? ConvertTree(Axis? axis) 436return new DoubleLinkAxis(axis, ConvertTree((Axis?)axis.Input)); 521private static bool IsNameTest(Axis ast) 525return ((ast.TypeOfAxis == Axis.AxisType.Child) && (ast.NodeType == XPathNodeType.Element)); 528internal static bool IsAttribute(Axis ast) 530return ((ast.TypeOfAxis == Axis.AxisType.Attribute) && (ast.NodeType == XPathNodeType.Attribute)); 533private static bool IsDescendantOrSelf(Axis ast) 535return ((ast.TypeOfAxis == Axis.AxisType.DescendantOrSelf) && (ast.NodeType == XPathNodeType.All) && (ast.AbbrAxis)); 538internal static bool IsSelf(Axis ast) 540return ((ast.TypeOfAxis == Axis.AxisType.Self) && (ast.NodeType == XPathNodeType.All) && (ast.AbbrAxis)); 565Axis ast = (Axis)(XPathParser.ParseXPathExpression(xpath[i])); 574Axis? stepAst; 577Axis ast = (Axis)AstArray[i]!; 587Axis top = stepAst; 602stepAst = (Axis?)(stepAst.Input); 630stepAst = (Axis?)(stepAst.Input); 645_fAxisArray.Add(new ForwardAxis(DoubleLinkAxis.ConvertTree((Axis)(ast.Input)), false)); 659stepAst = (Axis?)(stepAst.Input); 673_fAxisArray.Add(new ForwardAxis(DoubleLinkAxis.ConvertTree((Axis)(ast.Input)), true)); 690private 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;