63 references to AxisType
System.Private.Xml (63)
System\Xml\Schema\Asttree.cs (4)
528
return ((ast.TypeOfAxis == Axis.
AxisType
.Child) && (ast.NodeType == XPathNodeType.Element));
533
return ((ast.TypeOfAxis == Axis.
AxisType
.Attribute) && (ast.NodeType == XPathNodeType.Attribute));
538
return ((ast.TypeOfAxis == Axis.
AxisType
.DescendantOrSelf) && (ast.NodeType == XPathNodeType.All) && (ast.AbbrAxis));
543
return ((ast.TypeOfAxis == Axis.
AxisType
.Self) && (ast.NodeType == XPathNodeType.All) && (ast.AbbrAxis));
System\Xml\XPath\Internal\Axis.cs (4)
11
private readonly
AxisType
_axisType;
37
public Axis(
AxisType
axisType, AstNode? input, string prefix, string name, XPathNodeType nodetype)
49
public Axis(
AxisType
axisType, AstNode? input)
68
public
AxisType
TypeOfAxis { get { return _axisType; } }
System\Xml\XPath\Internal\QueryBuilder.cs (17)
75
root.TypeOfAxis == Axis.
AxisType
.Child &&
76
input.TypeOfAxis == Axis.
AxisType
.DescendantOrSelf && input.NodeType == XPathNodeType.All
98
if (root.TypeOfAxis == Axis.
AxisType
.Descendant || root.TypeOfAxis == Axis.
AxisType
.DescendantOrSelf)
115
case Axis.
AxisType
.Ancestor:
119
case Axis.
AxisType
.AncestorOrSelf:
123
case Axis.
AxisType
.Child:
133
case Axis.
AxisType
.Parent:
136
case Axis.
AxisType
.Descendant:
151
case Axis.
AxisType
.DescendantOrSelf:
166
case Axis.
AxisType
.Preceding:
170
case Axis.
AxisType
.Following:
174
case Axis.
AxisType
.FollowingSibling:
181
case Axis.
AxisType
.PrecedingSibling:
184
case Axis.
AxisType
.Attribute:
187
case Axis.
AxisType
.Self:
190
case Axis.
AxisType
.Namespace:
System\Xml\XPath\Internal\XPathParser.cs (38)
250
opnd = ParseRelativeLocationPath(new Axis(Axis.
AxisType
.DescendantOrSelf, opnd));
305
return ParseRelativeLocationPath(new Axis(Axis.
AxisType
.DescendantOrSelf, new Root()));
324
opnd = new Axis(Axis.
AxisType
.DescendantOrSelf, opnd);
359
opnd = new Axis(Axis.
AxisType
.Self, qyInput);
364
opnd = new Axis(Axis.
AxisType
.Parent, qyInput);
368
Axis.
AxisType
axisType = Axis.
AxisType
.Child;
372
axisType = Axis.
AxisType
.Attribute;
381
axisType == Axis.
AxisType
.Attribute ? XPathNodeType.Attribute :
397
private Axis ParseNodeTest(AstNode? qyInput, Axis.
AxisType
axisType, XPathNodeType nodeType)
625
opnd = new Axis(Axis.
AxisType
.DescendantOrSelf, new Root());
640
opnd = new Axis(Axis.
AxisType
.DescendantOrSelf, opnd);
696
opnd = ParseRelativePathPattern(new Axis(Axis.
AxisType
.DescendantOrSelf, opnd));
711
Axis.
AxisType
axisType = Axis.
AxisType
.Child;
715
axisType = Axis.
AxisType
.Attribute;
720
if (axisType != Axis.
AxisType
.Child && axisType != Axis.
AxisType
.Attribute)
728
axisType == Axis.
AxisType
.Attribute ? XPathNodeType.Attribute :
845
private static readonly Dictionary<string, Axis.
AxisType
> s_AxesTable = CreateAxesTable();
846
private static Dictionary<string, Axis.
AxisType
> CreateAxesTable()
848
Dictionary<string, Axis.
AxisType
> table = new Dictionary<string, Axis.
AxisType
>(13);
849
table.Add("ancestor", Axis.
AxisType
.Ancestor);
850
table.Add("ancestor-or-self", Axis.
AxisType
.AncestorOrSelf);
851
table.Add("attribute", Axis.
AxisType
.Attribute);
852
table.Add("child", Axis.
AxisType
.Child);
853
table.Add("descendant", Axis.
AxisType
.Descendant);
854
table.Add("descendant-or-self", Axis.
AxisType
.DescendantOrSelf);
855
table.Add("following", Axis.
AxisType
.Following);
856
table.Add("following-sibling", Axis.
AxisType
.FollowingSibling);
857
table.Add("namespace", Axis.
AxisType
.Namespace);
858
table.Add("parent", Axis.
AxisType
.Parent);
859
table.Add("preceding", Axis.
AxisType
.Preceding);
860
table.Add("preceding-sibling", Axis.
AxisType
.PrecedingSibling);
861
table.Add("self", Axis.
AxisType
.Self);
865
private Axis.
AxisType
GetAxis()
868
Axis.
AxisType
axis;