8 types derived from AstNode
System.Private.Xml (8)
System\Xml\XPath\Internal\Axis.cs (1)
9
internal class Axis :
AstNode
System\Xml\XPath\Internal\Filter.cs (1)
8
internal sealed class Filter :
AstNode
System\Xml\XPath\Internal\Function.cs (1)
10
internal sealed class Function :
AstNode
System\Xml\XPath\Internal\Group.cs (1)
8
internal sealed class Group :
AstNode
System\Xml\XPath\Internal\Operand.cs (1)
8
internal sealed class Operand :
AstNode
System\Xml\XPath\Internal\Operator.cs (1)
9
internal sealed class Operator :
AstNode
System\Xml\XPath\Internal\Root.cs (1)
8
internal sealed class Root :
AstNode
System\Xml\XPath\Internal\Variable.cs (1)
8
internal sealed class Variable :
AstNode
118 references to AstNode
System.Private.Xml (118)
System\Xml\XPath\Internal\Axis.cs (4)
12
private
AstNode
? _input;
37
public Axis(AxisType axisType,
AstNode
? input, string prefix, string name, XPathNodeType nodetype)
49
public Axis(AxisType axisType,
AstNode
? input)
59
public
AstNode
? Input
System\Xml\XPath\Internal\Filter.cs (6)
10
private readonly
AstNode
_input;
11
private readonly
AstNode
_condition;
13
public Filter(
AstNode
input,
AstNode
condition)
22
public
AstNode
Input { get { return _input; } }
23
public
AstNode
Condition { get { return _condition; } }
System\Xml\XPath\Internal\Function.cs (8)
45
private readonly List<
AstNode
> _argumentList;
50
public Function(FunctionType ftype, List<
AstNode
> argumentList)
53
_argumentList = new List<
AstNode
>(argumentList);
56
public Function(string prefix, string name, List<
AstNode
> argumentList)
61
_argumentList = new List<
AstNode
>(argumentList);
64
public Function(FunctionType ftype,
AstNode
arg)
67
_argumentList = new List<
AstNode
>();
82
public List<
AstNode
> ArgumentList { get { return _argumentList; } }
System\Xml\XPath\Internal\Group.cs (3)
10
private readonly
AstNode
_groupNode;
12
public Group(
AstNode
groupNode)
19
public
AstNode
GroupNode { get { return _groupNode; } }
System\Xml\XPath\Internal\Operator.cs (6)
54
private readonly
AstNode
_opnd1;
55
private readonly
AstNode
_opnd2;
57
public Operator(Op op,
AstNode
opnd1,
AstNode
opnd2)
82
public
AstNode
Operand1 { get { return _opnd1; } }
83
public
AstNode
Operand2 { get { return _opnd2; } }
System\Xml\XPath\Internal\QueryBuilder.cs (18)
241
if (root.Input.Type !=
AstNode
.AstType.Filter)
365
ProcessNode((
AstNode
)(root.ArgumentList[0]), Flags.None, out props)
368
qy = new IDQuery(ProcessNode((
AstNode
)(root.ArgumentList[0]), Flags.None, out props));
377
ProcessNode((
AstNode
)(root.ArgumentList[0]), Flags.None, out props)
403
ProcessNode((
AstNode
)root.ArgumentList[0], Flags.None, out props)
417
ProcessNode((
AstNode
)root.ArgumentList[0], Flags.None, out props)
440
private List<Query> ProcessArguments(List<
AstNode
> args, out Props props)
448
argList.Add(ProcessNode((
AstNode
)args[count], Flags.None, out argProps));
457
private Query ProcessNode(
AstNode
root, Flags flags, out Props props)
469
case
AstNode
.AstType.Axis:
472
case
AstNode
.AstType.Operator:
475
case
AstNode
.AstType.Filter:
478
case
AstNode
.AstType.ConstantOperand:
481
case
AstNode
.AstType.Variable:
484
case
AstNode
.AstType.Function:
487
case
AstNode
.AstType.Group:
490
case
AstNode
.AstType.Root:
501
private Query Build(
AstNode
root, string query)
System\Xml\XPath\Internal\XPathParser.cs (73)
22
public static
AstNode
ParseXPathExpression(string xpathExpression)
25
AstNode
result = parser.ParseExpression(null);
33
public static
AstNode
ParseXPathPattern(string xpathPattern)
36
AstNode
result = parser.ParsePattern();
53
private
AstNode
ParseExpression(
AstNode
? qyInput)
59
AstNode
result = ParseOrExpr(qyInput);
65
private
AstNode
ParseOrExpr(
AstNode
? qyInput)
67
AstNode
opnd = ParseAndExpr(qyInput);
81
private
AstNode
ParseAndExpr(
AstNode
? qyInput)
83
AstNode
opnd = ParseEqualityExpr(qyInput);
98
private
AstNode
ParseEqualityExpr(
AstNode
? qyInput)
100
AstNode
opnd = ParseRelationalExpr(qyInput);
120
private
AstNode
ParseRelationalExpr(
AstNode
? qyInput)
122
AstNode
opnd = ParseAdditiveExpr(qyInput);
144
private
AstNode
ParseAdditiveExpr(
AstNode
? qyInput)
146
AstNode
opnd = ParseMultiplicativeExpr(qyInput);
166
private
AstNode
ParseMultiplicativeExpr(
AstNode
? qyInput)
168
AstNode
opnd = ParseUnaryExpr(qyInput);
188
private
AstNode
ParseUnaryExpr(
AstNode
? qyInput)
208
private
AstNode
ParseUnionExpr(
AstNode
? qyInput)
210
AstNode
opnd = ParsePathExpr(qyInput);
219
AstNode
opnd2 = ParsePathExpr(qyInput);
236
private
AstNode
ParsePathExpr(
AstNode
? qyInput)
238
AstNode
opnd;
262
private
AstNode
ParseFilterExpr(
AstNode
? qyInput)
264
AstNode
opnd = ParsePrimaryExpr(qyInput);
274
private
AstNode
ParsePredicate(
AstNode
qyInput)
276
AstNode
opnd;
289
private
AstNode
ParseLocationPath(
AstNode
? qyInput)
294
AstNode
opnd = new Root();
315
private
AstNode
ParseRelativeLocationPath(
AstNode
? qyInput)
317
AstNode
? opnd = qyInput;
353
private
AstNode
ParseStep(
AstNode
? qyInput)
355
AstNode
opnd;
397
private Axis ParseNodeTest(
AstNode
? qyInput, Axis.AxisType axisType, XPathNodeType nodeType)
462
private
AstNode
ParsePrimaryExpr(
AstNode
? qyInput)
465
AstNode
? opnd = null;
485
if (opnd.Type !=
AstNode
.AstType.ConstantOperand)
502
private Function ParseMethod(
AstNode
? qyInput)
504
List<
AstNode
> argList = new List<
AstNode
>();
536
AstNode
arg = (
AstNode
)argList[i];
556
AstNode
arg = (
AstNode
)argList[i];
593
private
AstNode
ParsePattern()
595
AstNode
opnd = ParseLocationPathPattern();
610
private
AstNode
ParseLocationPathPattern()
612
AstNode
? opnd = null;
656
List<
AstNode
> argList = new List<
AstNode
>();
690
private
AstNode
ParseRelativePathPattern(
AstNode
? qyInput)
692
AstNode
opnd = ParseStepPattern(qyInput);
708
private
AstNode
ParseStepPattern(
AstNode
? qyInput)
710
AstNode
opnd;