74 references to ConditionEvaluator
Microsoft.Build (54)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (4)
67
bool condition =
ConditionEvaluator
.EvaluateCondition(
173
bool condition =
ConditionEvaluator
.EvaluateCondition(
209
bool keepDuplicates =
ConditionEvaluator
.EvaluateCondition(
327
bool condition =
ConditionEvaluator
.EvaluateCondition(
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
61
bool condition =
ConditionEvaluator
.EvaluateCondition(
BackEnd\Components\RequestBuilder\TargetEntry.cs (3)
357
bool condition =
ConditionEvaluator
.EvaluateCondition(
614
bool keepDupes =
ConditionEvaluator
.EvaluateCondition(
706
bool condition =
ConditionEvaluator
.EvaluateCondition(
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
375
bool condition =
ConditionEvaluator
.EvaluateCondition(
1074
bool condition =
ConditionEvaluator
.EvaluateCondition(
Evaluation\Conditionals\AndExpressionNode.cs (1)
22
internal override bool BoolEvaluate(
ConditionEvaluator
.IConditionEvaluationState state)
Evaluation\Conditionals\FunctionCallExpressionNode.cs (4)
33
internal override bool BoolEvaluate(
ConditionEvaluator
.IConditionEvaluationState state)
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)
188
private void VerifyArgumentCount(int expected,
ConditionEvaluator
.IConditionEvaluationState state)
Evaluation\Conditionals\GenericExpressionNode.cs (7)
17
internal abstract bool TryBoolEvaluate(
ConditionEvaluator
.IConditionEvaluationState state, out bool result);
18
internal abstract bool TryNumericEvaluate(
ConditionEvaluator
.IConditionEvaluationState state, out double result);
19
internal abstract bool TryVersionEvaluate(
ConditionEvaluator
.IConditionEvaluationState state, out Version result);
28
internal virtual bool EvaluatesToEmpty(
ConditionEvaluator
.IConditionEvaluationState state)
37
internal abstract string GetExpandedValue(
ConditionEvaluator
.IConditionEvaluationState state);
43
internal abstract string GetUnexpandedValue(
ConditionEvaluator
.IConditionEvaluationState state);
62
internal bool Evaluate(
ConditionEvaluator
.IConditionEvaluationState state)
Evaluation\Conditionals\MultipleComparisonExpressionNode.cs (4)
40
internal override bool BoolEvaluate(
ConditionEvaluator
.IConditionEvaluationState state)
116
private void UpdateConditionedProperties(
ConditionEvaluator
.IConditionEvaluationState state)
125
ConditionEvaluator
.UpdateConditionedPropertiesTable(
133
ConditionEvaluator
.UpdateConditionedPropertiesTable(
Evaluation\Conditionals\NotExpressionNode.cs (3)
22
internal override bool BoolEvaluate(
ConditionEvaluator
.IConditionEvaluationState state)
40
internal override string GetUnexpandedValue(
ConditionEvaluator
.IConditionEvaluationState state)
51
internal override string GetExpandedValue(
ConditionEvaluator
.IConditionEvaluationState state)
Evaluation\Conditionals\NumericComparisonExpressionNode.cs (1)
41
internal override bool BoolEvaluate(
ConditionEvaluator
.IConditionEvaluationState state)
Evaluation\Conditionals\NumericExpressionNode.cs (5)
24
internal override bool TryBoolEvaluate(
ConditionEvaluator
.IConditionEvaluationState state, out bool result)
30
internal override bool TryNumericEvaluate(
ConditionEvaluator
.IConditionEvaluationState state, out double result)
35
internal override bool TryVersionEvaluate(
ConditionEvaluator
.IConditionEvaluationState state, out Version? result)
47
internal override string GetUnexpandedValue(
ConditionEvaluator
.IConditionEvaluationState state)
55
internal override string GetExpandedValue(
ConditionEvaluator
.IConditionEvaluationState state)
Evaluation\Conditionals\OperatorExpressionNode.cs (6)
17
internal override bool TryBoolEvaluate(
ConditionEvaluator
.IConditionEvaluationState state, out bool result)
23
internal abstract bool BoolEvaluate(
ConditionEvaluator
.IConditionEvaluationState state);
25
internal override bool TryNumericEvaluate(
ConditionEvaluator
.IConditionEvaluationState state, out double result)
31
internal override bool TryVersionEvaluate(
ConditionEvaluator
.IConditionEvaluationState state, out Version result)
41
internal override string GetExpandedValue(
ConditionEvaluator
.IConditionEvaluationState state)
54
internal override string GetUnexpandedValue(
ConditionEvaluator
.IConditionEvaluationState state)
Evaluation\Conditionals\OrExpressionNode.cs (1)
22
internal override bool BoolEvaluate(
ConditionEvaluator
.IConditionEvaluationState state)
Evaluation\Conditionals\StringExpressionNode.cs (7)
34
internal override bool TryBoolEvaluate(
ConditionEvaluator
.IConditionEvaluationState state, out bool result)
39
internal override bool TryNumericEvaluate(
ConditionEvaluator
.IConditionEvaluationState state, out double result)
52
internal override bool TryVersionEvaluate(
ConditionEvaluator
.IConditionEvaluationState state, out Version result)
72
internal override bool EvaluatesToEmpty(
ConditionEvaluator
.IConditionEvaluationState state)
128
internal override string GetUnexpandedValue(
ConditionEvaluator
.IConditionEvaluationState state)
137
internal override string GetExpandedValue(
ConditionEvaluator
.IConditionEvaluationState state)
176
private bool ShouldBeTreatedAsVisualStudioVersion(
ConditionEvaluator
.IConditionEvaluationState state)
Evaluation\Evaluator.cs (2)
2390
bool result =
ConditionEvaluator
.EvaluateCondition(
2426
bool result =
ConditionEvaluator
.EvaluateConditionCollectingConditionedProperties(
Evaluation\LazyItemEvaluator.cs (1)
86
bool result =
ConditionEvaluator
.EvaluateCondition(
Instance\ProjectInstance.cs (1)
2258
bool result =
ConditionEvaluator
.EvaluateCondition(
Instance\TaskRegistry.cs (1)
301
if (!
ConditionEvaluator
.EvaluateCondition(
Microsoft.Build.Engine.UnitTests (20)
BackEnd\BatchingEngine_Tests.cs (1)
70
Assert.True(
ConditionEvaluator
.EvaluateCondition(
Evaluation\Evaluator_Tests.cs (3)
4469
ConditionEvaluator
.EvaluateCondition(
4487
Assert.True(
ConditionEvaluator
.EvaluateCondition(
4606
bool result =
ConditionEvaluator
.TryGetSingleProperty(input.AsSpan(), start, length, out ReadOnlySpan<char> actual);
Evaluation\Expander_Tests.cs (2)
2322
ConditionEvaluator
.EvaluateCondition(
2332
ConditionEvaluator
.EvaluateCondition(
ExpressionTree_Tests.cs (8)
111
ConditionEvaluator
.IConditionEvaluationState state =
112
new
ConditionEvaluator
.ConditionEvaluationState<ProjectPropertyInstance, ProjectItemInstance>(
334
ConditionEvaluator
.IConditionEvaluationState state =
335
new
ConditionEvaluator
.ConditionEvaluationState<ProjectPropertyInstance, ProjectItemInstance>(
432
private void AssertParseEvaluate(Parser p, string expression, Expander<ProjectPropertyInstance, ProjectItemInstance> expander, bool expected,
ConditionEvaluator
.IConditionEvaluationState state)
444
new
ConditionEvaluator
.ConditionEvaluationState<ProjectPropertyInstance, ProjectItemInstance>(
464
private void AssertParseEvaluateThrow(Parser p, string expression, Expander<ProjectPropertyInstance, ProjectItemInstance> expander,
ConditionEvaluator
.IConditionEvaluationState state)
480
new
ConditionEvaluator
.ConditionEvaluationState<ProjectPropertyInstance, ProjectItemInstance>(
ExpressionTreeExpression_Tests.cs (6)
437
ConditionEvaluator
.IConditionEvaluationState state =
438
new
ConditionEvaluator
.ConditionEvaluationState<ProjectPropertyInstance, ProjectItemInstance>(
461
ConditionEvaluator
.IConditionEvaluationState state =
462
new
ConditionEvaluator
.ConditionEvaluationState<ProjectPropertyInstance, ProjectItemInstance>(
493
ConditionEvaluator
.IConditionEvaluationState state =
494
new
ConditionEvaluator
.ConditionEvaluationState<ProjectPropertyInstance, ProjectItemInstance>(