82 references to XPathAxis
System.Data.SqlXml (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)
269
public static XmlNodeKindFlags AxisTypeMask(XmlNodeKindFlags inputTypeMask, XPathNodeType nodeType,
XPathAxis
xpathAxis) {
276
QilNode BuildAxisFilter(QilNode qilAxis,
XPathAxis
xpathAxis, XPathNodeType nodeType, string name, string nsUri) {
332
QilNode BuildAxis(
XPathAxis
xpathAxis, XPathNodeType nodeType, string nsUri, string name) {
337
case
XPathAxis
.Ancestor : qilAxis = f.Ancestor (currentNode); break;
338
case
XPathAxis
.AncestorOrSelf : qilAxis = f.AncestorOrSelf (currentNode); break;
339
case
XPathAxis
.Attribute : qilAxis = f.Content (currentNode); break;
340
case
XPathAxis
.Child : qilAxis = f.Content (currentNode); break;
341
case
XPathAxis
.Descendant : qilAxis = f.Descendant (currentNode); break;
342
case
XPathAxis
.DescendantOrSelf : qilAxis = f.DescendantOrSelf (currentNode); break;
343
case
XPathAxis
.Following : qilAxis = f.XPathFollowing (currentNode); break;
344
case
XPathAxis
.FollowingSibling : qilAxis = f.FollowingSibling (currentNode); break;
345
case
XPathAxis
.Namespace : qilAxis = f.XPathNamespace (currentNode); break;
346
case
XPathAxis
.Parent : qilAxis = f.Parent (currentNode); break;
347
case
XPathAxis
.Preceding : qilAxis = f.XPathPreceding (currentNode); break;
348
case
XPathAxis
.PrecedingSibling : qilAxis = f.PrecedingSibling (currentNode); break;
349
case
XPathAxis
.Self : qilAxis = (currentNode); break;
351
case
XPathAxis
.Root : return f.Root (currentNode);
360
xpathAxis ==
XPathAxis
.Ancestor || xpathAxis ==
XPathAxis
.Preceding ||
361
xpathAxis ==
XPathAxis
.AncestorOrSelf || xpathAxis ==
XPathAxis
.PrecedingSibling
371
public virtual QilNode Axis(
XPathAxis
xpathAxis, XPathNodeType nodeType, string prefix, string name) {
System\Xml\Xsl\XPath\XPathParser.cs (20)
82
Node opnd = builder.Axis(
XPathAxis
.Root, XPathNodeType.All, null, null);
91
builder.Axis(
XPathAxis
.Root, XPathNodeType.All, null, null),
93
builder.Axis(
XPathAxis
.DescendantOrSelf, XPathNodeType.All, null, null),
122
builder.Axis(
XPathAxis
.DescendantOrSelf, XPathNodeType.All, null, null),
138
opnd = builder.Axis(
XPathAxis
.Self, XPathNodeType.All, null, null);
144
opnd = builder.Axis(
XPathAxis
.Parent, XPathNodeType.All, null, null);
149
XPathAxis
axis;
157
axis =
XPathAxis
.Attribute;
163
axis =
XPathAxis
.Child;
178
private static bool IsReverseAxis(
XPathAxis
axis) {
180
axis ==
XPathAxis
.Ancestor || axis ==
XPathAxis
.Preceding ||
181
axis ==
XPathAxis
.AncestorOrSelf || axis ==
XPathAxis
.PrecedingSibling
189
private Node ParseNodeTest(
XPathAxis
axis) {
210
private static XPathNodeType PrincipalNodeType(
XPathAxis
axis) {
212
axis ==
XPathAxis
.Attribute ? XPathNodeType.Attribute :
213
axis ==
XPathAxis
.Namespace ? XPathNodeType.Namespace :
218
internal static void InternalParseNodeTest(XPathScanner scanner,
XPathAxis
axis, out XPathNodeType nodeType, out string nodePrefix, out string nodeName) {
404
builder.Axis(
XPathAxis
.DescendantOrSelf, XPathNodeType.All, null, null),
System\Xml\Xsl\XPath\XPathScanner.cs (19)
73
private
XPathAxis
axis;
168
public
XPathAxis
Axis {
171
Debug.Assert(axis !=
XPathAxis
.Unknown);
300
this.axis =
XPathAxis
.Unknown;
398
private
XPathAxis
CheckAxis() {
401
case "ancestor" : return
XPathAxis
.Ancestor;
402
case "ancestor-or-self" : return
XPathAxis
.AncestorOrSelf;
403
case "attribute" : return
XPathAxis
.Attribute;
404
case "child" : return
XPathAxis
.Child;
405
case "descendant" : return
XPathAxis
.Descendant;
406
case "descendant-or-self" : return
XPathAxis
.DescendantOrSelf;
407
case "following" : return
XPathAxis
.Following;
408
case "following-sibling" : return
XPathAxis
.FollowingSibling;
409
case "namespace" : return
XPathAxis
.Namespace;
410
case "parent" : return
XPathAxis
.Parent;
411
case "preceding" : return
XPathAxis
.Preceding;
412
case "preceding-sibling" : return
XPathAxis
.PrecedingSibling;
413
case "self" : return
XPathAxis
.Self;
414
default : this.kind = LexKind.Name; return
XPathAxis
.Unknown;
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (8)
91
private static QilLoop BuildAxisFilter(QilPatternFactory f, QilIterator itr,
XPathAxis
xpathAxis, XPathNodeType nodeType, string name, string nsUri) {
113
public QilNode Axis(
XPathAxis
xpathAxis, XPathNodeType nodeType, string prefix, string name) {
115
xpathAxis ==
XPathAxis
.Child ||
116
xpathAxis ==
XPathAxis
.Attribute ||
117
xpathAxis ==
XPathAxis
.DescendantOrSelf ||
118
xpathAxis ==
XPathAxis
.Root
123
case
XPathAxis
.DescendantOrSelf :
126
case
XPathAxis
.Root :
System\Xml\Xsl\Xslt\XPathPatternParser.cs (10)
70
opnd = ptrnBuilder.Axis(
XPathAxis
.Root, XPathNodeType.All, null, null);
79
ptrnBuilder.Axis(
XPathAxis
.Root, XPathNodeType.All, null, null),
81
ptrnBuilder.Axis(
XPathAxis
.DescendantOrSelf, XPathNodeType.All, null, null),
97
ptrnBuilder.Axis(
XPathAxis
.DescendantOrSelf, XPathNodeType.All, null, null),
163
ptrnBuilder.Axis(
XPathAxis
.DescendantOrSelf, XPathNodeType.All, null, null),
178
XPathAxis
axis;
185
axis =
XPathAxis
.Attribute;
190
if (axis !=
XPathAxis
.Child && axis !=
XPathAxis
.Attribute) {
199
axis =
XPathAxis
.Child;
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (2)
921
public virtual XslFlags Axis(
XPathAxis
xpathAxis, XPathNodeType nodeType, string prefix, string name) {
923
if (xpathAxis ==
XPathAxis
.Self && nodeType == XPathNodeType.All && prefix == null && name == null) {