82 references to XPathAxis
System.Private.Xml (82)
System\Xml\Xsl\XPath\IXpathBuilder.cs (1)
26
Node Axis(
XPathAxis
xpathAxis, XPathNodeType nodeType, string? prefix, string? name);
System\Xml\Xsl\XPath\XPathBuilder.cs (22)
320
public static XmlNodeKindFlags AxisTypeMask(XmlNodeKindFlags inputTypeMask, XPathNodeType nodeType,
XPathAxis
xpathAxis)
328
private QilNode BuildAxisFilter(QilNode qilAxis,
XPathAxis
xpathAxis, XPathNodeType nodeType, string? name, string? nsUri)
390
private QilNode BuildAxis(
XPathAxis
xpathAxis, XPathNodeType nodeType, string? nsUri, string? name)
397
case
XPathAxis
.Ancestor: qilAxis = _f.Ancestor(currentNode); break;
398
case
XPathAxis
.AncestorOrSelf: qilAxis = _f.AncestorOrSelf(currentNode); break;
399
case
XPathAxis
.Attribute: qilAxis = _f.Content(currentNode); break;
400
case
XPathAxis
.Child: qilAxis = _f.Content(currentNode); break;
401
case
XPathAxis
.Descendant: qilAxis = _f.Descendant(currentNode); break;
402
case
XPathAxis
.DescendantOrSelf: qilAxis = _f.DescendantOrSelf(currentNode); break;
403
case
XPathAxis
.Following: qilAxis = _f.XPathFollowing(currentNode); break;
404
case
XPathAxis
.FollowingSibling: qilAxis = _f.FollowingSibling(currentNode); break;
405
case
XPathAxis
.Namespace: qilAxis = _f.XPathNamespace(currentNode); break;
406
case
XPathAxis
.Parent: qilAxis = _f.Parent(currentNode); break;
407
case
XPathAxis
.Preceding: qilAxis = _f.XPathPreceding(currentNode); break;
408
case
XPathAxis
.PrecedingSibling: qilAxis = _f.PrecedingSibling(currentNode); break;
409
case
XPathAxis
.Self: qilAxis = (currentNode); break;
411
case
XPathAxis
.Root: return _f.Root(currentNode);
420
xpathAxis ==
XPathAxis
.Ancestor || xpathAxis ==
XPathAxis
.Preceding ||
421
xpathAxis ==
XPathAxis
.AncestorOrSelf || xpathAxis ==
XPathAxis
.PrecedingSibling
432
public virtual QilNode Axis(
XPathAxis
xpathAxis, XPathNodeType nodeType, string? prefix, string? name)
System\Xml\Xsl\XPath\XPathParser.cs (20)
86
Node opnd = _builder!.Axis(
XPathAxis
.Root, XPathNodeType.All, null, null);
98
_builder.Axis(
XPathAxis
.Root, XPathNodeType.All, null, null),
100
_builder.Axis(
XPathAxis
.DescendantOrSelf, XPathNodeType.All, null, null),
137
_builder.Axis(
XPathAxis
.DescendantOrSelf, XPathNodeType.All, null, null),
155
opnd = _builder!.Axis(
XPathAxis
.Self, XPathNodeType.All, null, null);
164
opnd = _builder!.Axis(
XPathAxis
.Parent, XPathNodeType.All, null, null);
172
XPathAxis
axis;
181
axis =
XPathAxis
.Attribute;
187
axis =
XPathAxis
.Child;
203
private static bool IsReverseAxis(
XPathAxis
axis)
206
axis ==
XPathAxis
.Ancestor || axis ==
XPathAxis
.Preceding ||
207
axis ==
XPathAxis
.AncestorOrSelf || axis ==
XPathAxis
.PrecedingSibling
215
private Node ParseNodeTest(
XPathAxis
axis)
238
private static XPathNodeType PrincipalNodeType(
XPathAxis
axis)
241
axis ==
XPathAxis
.Attribute ? XPathNodeType.Attribute :
242
axis ==
XPathAxis
.Namespace ? XPathNodeType.Namespace :
247
internal static void InternalParseNodeTest(XPathScanner scanner,
XPathAxis
axis, out XPathNodeType nodeType, out string? nodePrefix, out string? nodeName)
461
_builder.Axis(
XPathAxis
.DescendantOrSelf, XPathNodeType.All, null, null),
System\Xml\Xsl\XPath\XPathScanner.cs (19)
72
private
XPathAxis
_axis;
172
public
XPathAxis
Axis
177
Debug.Assert(_axis !=
XPathAxis
.Unknown);
341
_axis =
XPathAxis
.Unknown;
461
private
XPathAxis
CheckAxis()
466
case "ancestor": return
XPathAxis
.Ancestor;
467
case "ancestor-or-self": return
XPathAxis
.AncestorOrSelf;
468
case "attribute": return
XPathAxis
.Attribute;
469
case "child": return
XPathAxis
.Child;
470
case "descendant": return
XPathAxis
.Descendant;
471
case "descendant-or-self": return
XPathAxis
.DescendantOrSelf;
472
case "following": return
XPathAxis
.Following;
473
case "following-sibling": return
XPathAxis
.FollowingSibling;
474
case "namespace": return
XPathAxis
.Namespace;
475
case "parent": return
XPathAxis
.Parent;
476
case "preceding": return
XPathAxis
.Preceding;
477
case "preceding-sibling": return
XPathAxis
.PrecedingSibling;
478
case "self": return
XPathAxis
.Self;
479
default: _kind = LexKind.Name; return
XPathAxis
.Unknown;
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (8)
97
private static QilLoop BuildAxisFilter(QilPatternFactory f, QilIterator itr,
XPathAxis
xpathAxis, XPathNodeType nodeType, string? name, string? nsUri)
120
public QilNode Axis(
XPathAxis
xpathAxis, XPathNodeType nodeType, string? prefix, string? name)
123
xpathAxis ==
XPathAxis
.Child ||
124
xpathAxis ==
XPathAxis
.Attribute ||
125
xpathAxis ==
XPathAxis
.DescendantOrSelf ||
126
xpathAxis ==
XPathAxis
.Root
132
case
XPathAxis
.DescendantOrSelf:
135
case
XPathAxis
.Root:
System\Xml\Xsl\Xslt\XPathPatternParser.cs (10)
75
opnd = _ptrnBuilder!.Axis(
XPathAxis
.Root, XPathNodeType.All, null, null);
85
_ptrnBuilder.Axis(
XPathAxis
.Root, XPathNodeType.All, null, null),
87
_ptrnBuilder.Axis(
XPathAxis
.DescendantOrSelf, XPathNodeType.All, null, null),
105
_ptrnBuilder.Axis(
XPathAxis
.DescendantOrSelf, XPathNodeType.All, null, null),
181
_ptrnBuilder.Axis(
XPathAxis
.DescendantOrSelf, XPathNodeType.All, null, null),
197
XPathAxis
axis;
205
axis =
XPathAxis
.Attribute;
210
if (axis !=
XPathAxis
.Child && axis !=
XPathAxis
.Attribute)
220
axis =
XPathAxis
.Child;
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (2)
1019
public XslFlags Axis(
XPathAxis
xpathAxis, XPathNodeType nodeType, string? prefix, string? name)
1022
if (xpathAxis ==
XPathAxis
.Self && nodeType == XPathNodeType.All && prefix == null && name == null)