2 types derived from GenericExpressionNode
Microsoft.Build (2)
Evaluation\Conditionals\OperandExpressionNode.cs (1)
11
internal abstract class OperandExpressionNode :
GenericExpressionNode
Evaluation\Conditionals\OperatorExpressionNode.cs (1)
15
internal abstract class OperatorExpressionNode :
GenericExpressionNode
57 references to GenericExpressionNode
Microsoft.Build (43)
Evaluation\Conditionals\FunctionCallExpressionNode.cs (4)
21
private readonly List<
GenericExpressionNode
> _arguments;
24
internal FunctionCallExpressionNode(string functionName, List<
GenericExpressionNode
> arguments)
115
private static string ExpandArgumentForScalarParameter(string function,
GenericExpressionNode
argumentNode, ConditionEvaluator.IConditionEvaluationState state,
150
private List<string> ExpandArgumentAsFileList(
GenericExpressionNode
argumentNode, ConditionEvaluator.IConditionEvaluationState state, bool isFilePath = true)
Evaluation\Conditionals\NotExpressionNode.cs (1)
45
/// <inheritdoc cref="
GenericExpressionNode
"/>
Evaluation\Conditionals\NumericExpressionNode.cs (1)
40
/// <inheritdoc cref="
GenericExpressionNode
"/>
Evaluation\Conditionals\OperatorExpressionNode.cs (3)
46
/// <inheritdoc cref="
GenericExpressionNode
"/>
73
internal
GenericExpressionNode
LeftChild { set; get; }
78
internal
GenericExpressionNode
RightChild { set; get; }
Evaluation\Conditionals\Parser.cs (24)
98
internal
GenericExpressionNode
Parse(string expression, ParserOptions optionSettings, ElementLocation elementLocation)
114
GenericExpressionNode
node = Expr(expression);
128
private
GenericExpressionNode
Expr(string expression)
130
GenericExpressionNode
node = BooleanTerm(expression);
153
private
GenericExpressionNode
ExprPrime(string expression,
GenericExpressionNode
lhs)
162
GenericExpressionNode
rhs = BooleanTerm(expression);
176
private
GenericExpressionNode
BooleanTerm(string expression)
178
GenericExpressionNode
node = RelationalExpr(expression);
192
private
GenericExpressionNode
BooleanTermPrime(string expression,
GenericExpressionNode
lhs)
200
GenericExpressionNode
rhs = RelationalExpr(expression);
219
private
GenericExpressionNode
RelationalExpr(string expression)
222
GenericExpressionNode
lhs = Factor(expression);
234
GenericExpressionNode
rhs = Factor(expression);
271
private
GenericExpressionNode
Factor(string expression)
274
GenericExpressionNode
arg = this.Arg(expression);
292
var arglist = new List<
GenericExpressionNode
>();
304
GenericExpressionNode
child = Expr(expression);
318
GenericExpressionNode
expr = Factor(expression);
335
private void Arglist(string expression, List<
GenericExpressionNode
> arglist)
343
private void Args(string expression, List<
GenericExpressionNode
> arglist)
345
GenericExpressionNode
arg = Arg(expression);
353
private
GenericExpressionNode
Arg(string expression)
Evaluation\Conditionals\StringExpressionNode.cs (1)
120
/// <inheritdoc cref="
GenericExpressionNode
"/>
Evaluation\ConditionEvaluator.cs (9)
143
private readonly ConcurrentDictionary<string, ConcurrentStack<
GenericExpressionNode
>> _conditionPools;
148
public ExpressionTreeForCurrentOptionsWithSize(ConcurrentDictionary<string, ConcurrentStack<
GenericExpressionNode
>> conditionPools)
154
public ConcurrentStack<
GenericExpressionNode
> GetOrAdd(string condition, Func<string, ConcurrentStack<
GenericExpressionNode
>> addFunc)
245
_ => new ExpressionTreeForCurrentOptionsWithSize(new ConcurrentDictionary<string, ConcurrentStack<
GenericExpressionNode
>>(StringComparer.Ordinal)));
250
var expressionPool = cachedExpressionTreesForCurrentOptions.GetOrAdd(condition, _ => new ConcurrentStack<
GenericExpressionNode
>());
254
if (!expressionPool.TryPop(out
var
parsedExpression))
321
new ConcurrentDictionary<string, ConcurrentStack<
GenericExpressionNode
>>(StringComparer.Ordinal)),
328
new ConcurrentDictionary<string, ConcurrentStack<
GenericExpressionNode
>>(StringComparer.Ordinal));
Microsoft.Build.Engine.UnitTests (14)
ExpressionTree_Tests.cs (3)
101
GenericExpressionNode
tree;
439
GenericExpressionNode
tree = p.Parse(expression, ParserOptions.AllowAll, MockElementLocation.Instance);
476
GenericExpressionNode
tree = p.Parse(expression, ParserOptions.AllowAll, MockElementLocation.Instance);
ExpressionTreeExpression_Tests.cs (3)
436
GenericExpressionNode
tree = p.Parse(expression, ParserOptions.AllowAll, ElementLocation.EmptyLocation);
460
GenericExpressionNode
tree = p.Parse(expression, ParserOptions.AllowAll, ElementLocation.EmptyLocation);
491
var
tree = p.Parse(expression, ParserOptions.AllowAll, ElementLocation.EmptyLocation);
Parser_Tests.cs (8)
30
GenericExpressionNode
tree = p.Parse("$(foo)", ParserOptions.AllowAll, _elementLocation);
79
GenericExpressionNode
tree = p.Parse("$(foo)", ParserOptions.AllowAll, _elementLocation);
107
GenericExpressionNode
tree = p.Parse("!true", ParserOptions.AllowAll, _elementLocation);
124
GenericExpressionNode
tree = p.Parse("SimpleFunctionCall()", ParserOptions.AllowAll, _elementLocation);
138
GenericExpressionNode
tree;
218
GenericExpressionNode
tree = p.Parse("@(item->foo('ab'))",
237
GenericExpressionNode
tree;
318
GenericExpressionNode
tree;