59 references to AxisType
System.Xml (59)
System\Xml\Schema\Asttree.cs (4)
465return ((ast.TypeOfAxis == Axis.AxisType.Child) && (ast.NodeType == XPathNodeType.Element)); 469return ((ast.TypeOfAxis == Axis.AxisType.Attribute) && (ast.NodeType == XPathNodeType.Attribute)); 473return ((ast.TypeOfAxis == Axis.AxisType.DescendantOrSelf) && (ast.NodeType == XPathNodeType.All) && (ast.AbbrAxis)); 477return ((ast.TypeOfAxis == Axis.AxisType.Self) && (ast.NodeType == XPathNodeType.All) && (ast.AbbrAxis));
System\Xml\XPath\Internal\Axis.cs (4)
16private AxisType axisType; 41public Axis(AxisType axisType, AstNode input, string prefix, string name, XPathNodeType nodetype) { 52public Axis(AxisType axisType, AstNode input) 70public AxisType TypeOfAxis { get { return axisType; } }
System\Xml\XPath\Internal\QueryBuilder.cs (17)
69root.TypeOfAxis == Axis.AxisType.Child && 70input.TypeOfAxis == Axis.AxisType.DescendantOrSelf && input.NodeType == XPathNodeType.All 87if (root.TypeOfAxis == Axis.AxisType.Descendant || root.TypeOfAxis == Axis.AxisType.DescendantOrSelf) { 100case Axis.AxisType.Ancestor: 104case Axis.AxisType.AncestorOrSelf: 108case Axis.AxisType.Child: 115case Axis.AxisType.Parent: 118case Axis.AxisType.Descendant: 129case Axis.AxisType.DescendantOrSelf: 140case Axis.AxisType.Preceding: 144case Axis.AxisType.Following: 148case Axis.AxisType.FollowingSibling: 154case Axis.AxisType.PrecedingSibling: 157case Axis.AxisType.Attribute: 160case Axis.AxisType.Self: 163case Axis.AxisType.Namespace:
System\Xml\XPath\Internal\XPathParser.cs (34)
223 opnd = ParseRelativeLocationPath(new Axis(Axis.AxisType.DescendantOrSelf, opnd)); 270return ParseRelativeLocationPath(new Axis(Axis.AxisType.DescendantOrSelf, new Root())); 285opnd = new Axis(Axis.AxisType.DescendantOrSelf, opnd); 315opnd = new Axis(Axis.AxisType.Self, qyInput); 319opnd = new Axis(Axis.AxisType.Parent, qyInput); 322Axis.AxisType axisType = Axis.AxisType.Child; 325axisType = Axis.AxisType.Attribute; 334axisType == Axis.AxisType.Attribute ? XPathNodeType.Attribute : 349private AstNode ParseNodeTest(AstNode qyInput, Axis.AxisType axisType, XPathNodeType nodeType) { 546opnd = new Axis(Axis.AxisType.DescendantOrSelf, new Root()); 558opnd = new Axis(Axis.AxisType.DescendantOrSelf, opnd); 608opnd = ParseRelativePathPattern(new Axis(Axis.AxisType.DescendantOrSelf, opnd)); 621Axis.AxisType axisType = Axis.AxisType.Child; 624axisType = Axis.AxisType.Attribute; 629if (axisType != Axis.AxisType.Child && axisType != Axis.AxisType.Attribute) { 636axisType == Axis.AxisType.Attribute ? XPathNodeType.Attribute : 745table.Add("ancestor" , Axis.AxisType.Ancestor ); 746table.Add("ancestor-or-self" , Axis.AxisType.AncestorOrSelf ); 747table.Add("attribute" , Axis.AxisType.Attribute ); 748table.Add("child" , Axis.AxisType.Child ); 749table.Add("descendant" , Axis.AxisType.Descendant ); 750table.Add("descendant-or-self", Axis.AxisType.DescendantOrSelf ); 751table.Add("following" , Axis.AxisType.Following ); 752table.Add("following-sibling" , Axis.AxisType.FollowingSibling ); 753table.Add("namespace" , Axis.AxisType.Namespace ); 754table.Add("parent" , Axis.AxisType.Parent ); 755table.Add("preceding" , Axis.AxisType.Preceding ); 756table.Add("preceding-sibling" , Axis.AxisType.PrecedingSibling ); 757table.Add("self" , Axis.AxisType.Self ); 761private Axis.AxisType GetAxis(XPathScanner scaner) { 767return (Axis.AxisType) axis;