57 references to QueryAxisType
System.ServiceModel (57)
System\ServiceModel\Dispatcher\QueryModel.cs (23)
55QueryAxisType type; 58internal QueryAxis(QueryAxisType type, AxisDirection direction, QueryNodeType principalNode, QueryNodeType validNodeTypes) 82internal QueryAxisType Type 105case QueryAxisType.DescendantOrSelf: 106case QueryAxisType.Descendant: 107case QueryAxisType.Attribute: 108case QueryAxisType.Child: 109case QueryAxisType.Self: 354new QueryAxis(QueryAxisType.None, AxisDirection.Forward, QueryNodeType.Any, QueryNodeType.Any), 355new QueryAxis(QueryAxisType.Ancestor, AxisDirection.Reverse, QueryNodeType.Element, QueryNodeType.Ancestor), 356new QueryAxis(QueryAxisType.AncestorOrSelf, AxisDirection.Reverse, QueryNodeType.Element, QueryNodeType.All), 357new QueryAxis(QueryAxisType.Attribute, AxisDirection.Forward, QueryNodeType.Attribute, QueryNodeType.Attribute), 358new QueryAxis(QueryAxisType.Child, AxisDirection.Forward, QueryNodeType.Element, QueryNodeType.ChildNodes), 359new QueryAxis(QueryAxisType.Descendant, AxisDirection.Forward, QueryNodeType.Element, QueryNodeType.ChildNodes), 360new QueryAxis(QueryAxisType.DescendantOrSelf, AxisDirection.Forward, QueryNodeType.Element, QueryNodeType.All), 361new QueryAxis(QueryAxisType.Following, AxisDirection.Forward, QueryNodeType.Element, QueryNodeType.ChildNodes), 362new QueryAxis(QueryAxisType.FollowingSibling, AxisDirection.Forward, QueryNodeType.Element, QueryNodeType.ChildNodes), 363new QueryAxis(QueryAxisType.Namespace, AxisDirection.Forward, QueryNodeType.Namespace, QueryNodeType.Namespace), 364new QueryAxis(QueryAxisType.Parent, AxisDirection.Reverse, QueryNodeType.Element, QueryNodeType.Ancestor), 365new QueryAxis(QueryAxisType.Preceding, AxisDirection.Reverse, QueryNodeType.Element, QueryNodeType.ChildNodes), 366new QueryAxis(QueryAxisType.PrecedingSibling, AxisDirection.Reverse, QueryNodeType.Element, QueryNodeType.All), 367new QueryAxis(QueryAxisType.Self, AxisDirection.Forward, QueryNodeType.Element, QueryNodeType.All), 402internal static QueryAxis GetAxis(QueryAxisType type)
System\ServiceModel\Dispatcher\QuerySelectOp.cs (12)
27internal NodeSelectCriteria(QueryAxisType axis, NodeQName qname, QueryNodeType nodeType) 48return QueryAxisType.Self == this.axis.Type || QueryAxisType.Child == this.axis.Type; 172if (QueryAxisType.Self == this.axis.Type) 179else if (QueryAxisType.Descendant == this.axis.Type) 183else if (QueryAxisType.DescendantOrSelf == this.axis.Type) 188else if (QueryAxisType.Child == this.axis.Type) 205else if (QueryAxisType.Attribute == this.axis.Type) 257if (QueryAxisType.Descendant == this.axis.Type) 281if (QueryAxisType.Descendant == this.axis.Type) 286else if (QueryAxisType.DescendantOrSelf == this.axis.Type) 338if (QueryAxisType.Self == this.axis.Type)
System\ServiceModel\Dispatcher\QuerySubExprEliminator.cs (1)
33this.useSpecial = parent is SubExprHeader && ((SelectOpcode)ops).Criteria.Axis.Type == QueryAxisType.Child;
System\ServiceModel\Dispatcher\XPathParser.cs (21)
158path.Add(new XPathStepExpr(new NodeSelectCriteria(QueryAxisType.Child, NodeQName.Empty, QueryNodeType.Root))); 165path.Add(new XPathStepExpr(new NodeSelectCriteria(QueryAxisType.Child, NodeQName.Empty, QueryNodeType.Root))); 166path.Add(new XPathStepExpr(new NodeSelectCriteria(QueryAxisType.DescendantOrSelf, NodeQName.Empty, QueryNodeType.All))); 250QueryAxisType ParseAxisSpecifier() 254return QueryAxisType.Attribute; 257QueryAxisType axisType = QueryAxisType.None; 269axisType = QueryAxisType.Attribute; 273axisType = QueryAxisType.Child; 277axisType = QueryAxisType.Descendant; 281axisType = QueryAxisType.DescendantOrSelf; 285axisType = QueryAxisType.Self; 532NodeSelectCriteria ParseNodeTest(QueryAxisType axisType) 534Fx.Assert(QueryAxisType.None != axisType, ""); 692pathExpr.Add(new XPathStepExpr(new NodeSelectCriteria(QueryAxisType.DescendantOrSelf, NodeQName.Empty, QueryNodeType.All))); 806step = new XPathStepExpr(new NodeSelectCriteria(QueryAxisType.DescendantOrSelf, NodeQName.Empty, QueryNodeType.All)); 884QueryAxisType axis = this.ParseAxisSpecifier(); 888if (QueryAxisType.None != axis) 898selectDesc = new NodeSelectCriteria(QueryAxisType.Self, NodeQName.Empty, QueryNodeType.All); 904selectDesc = new NodeSelectCriteria(QueryAxisType.Parent, NodeQName.Empty, QueryNodeType.Ancestor); 910if (null == (selectDesc = this.ParseNodeTest(QueryAxisType.Child)))