63 references to AxisType
System.Private.Xml (63)
System\Xml\Schema\Asttree.cs (4)
528return ((ast.TypeOfAxis == Axis.AxisType.Child) && (ast.NodeType == XPathNodeType.Element)); 533return ((ast.TypeOfAxis == Axis.AxisType.Attribute) && (ast.NodeType == XPathNodeType.Attribute)); 538return ((ast.TypeOfAxis == Axis.AxisType.DescendantOrSelf) && (ast.NodeType == XPathNodeType.All) && (ast.AbbrAxis)); 543return ((ast.TypeOfAxis == Axis.AxisType.Self) && (ast.NodeType == XPathNodeType.All) && (ast.AbbrAxis));
System\Xml\XPath\Internal\Axis.cs (4)
11private readonly AxisType _axisType; 37public Axis(AxisType axisType, AstNode? input, string prefix, string name, XPathNodeType nodetype) 49public Axis(AxisType axisType, AstNode? input) 68public AxisType TypeOfAxis { get { return _axisType; } }
System\Xml\XPath\Internal\QueryBuilder.cs (17)
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:
System\Xml\XPath\Internal\XPathParser.cs (38)
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;