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