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