1 type derived from Axis
System.Private.Xml (1)
System\Xml\Schema\Asttree.cs (1)
407
internal sealed class DoubleLinkAxis :
Axis
9 instantiations of Axis
System.Private.Xml (9)
System\Xml\XPath\Internal\XPathParser.cs (9)
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);
451
return new
Axis
(axisType, qyInput, nodePrefix, nodeName, 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));
85 references to Axis
System.Private.Xml (85)
System\Xml\Schema\Asttree.cs (25)
409
internal
Axis
? next;
411
internal
Axis
? Next
418
internal DoubleLinkAxis(
Axis
axis, DoubleLinkAxis? inputaxis)
432
internal static DoubleLinkAxis? ConvertTree(
Axis
? axis)
439
return new DoubleLinkAxis(axis, ConvertTree((
Axis
?)axis.Input));
524
private static bool IsNameTest(
Axis
ast)
528
return ((ast.TypeOfAxis ==
Axis
.AxisType.Child) && (ast.NodeType == XPathNodeType.Element));
531
internal static bool IsAttribute(
Axis
ast)
533
return ((ast.TypeOfAxis ==
Axis
.AxisType.Attribute) && (ast.NodeType == XPathNodeType.Attribute));
536
private static bool IsDescendantOrSelf(
Axis
ast)
538
return ((ast.TypeOfAxis ==
Axis
.AxisType.DescendantOrSelf) && (ast.NodeType == XPathNodeType.All) && (ast.AbbrAxis));
541
internal static bool IsSelf(
Axis
ast)
543
return ((ast.TypeOfAxis ==
Axis
.AxisType.Self) && (ast.NodeType == XPathNodeType.All) && (ast.AbbrAxis));
568
Axis
ast = (
Axis
)(XPathParser.ParseXPathExpression(xpath[i]));
577
Axis
? stepAst;
580
Axis
ast = (
Axis
)AstArray[i]!;
590
Axis
top = stepAst;
605
stepAst = (
Axis
?)(stepAst.Input);
633
stepAst = (
Axis
?)(stepAst.Input);
648
_fAxisArray.Add(new ForwardAxis(DoubleLinkAxis.ConvertTree((
Axis
)(ast.Input)), false));
662
stepAst = (
Axis
?)(stepAst.Input);
676
_fAxisArray.Add(new ForwardAxis(DoubleLinkAxis.ConvertTree((
Axis
)(ast.Input)), true));
693
private static void SetURN(
Axis
axis, XmlNamespaceManager nsmgr)
System\Xml\XPath\Internal\QueryBuilder.cs (21)
56
private Query ProcessAxis(
Axis
root, Flags flags, out Props props)
71
Axis
? input = root.Input as
Axis
;
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:
470
result = ProcessAxis((
Axis
)root, flags, out props);
System\Xml\XPath\Internal\XPathParser.cs (39)
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;