66 references to ExpandAll
Microsoft.Build (36)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (11)
71
ExpanderOptions.
ExpandAll
,
86
var keepMetadataEvaluated = bucket.Expander.ExpandIntoStringListLeaveEscaped(child.KeepMetadata, ExpanderOptions.
ExpandAll
, child.KeepMetadataLocation).ToList();
95
var removeMetadataEvaluated = bucket.Expander.ExpandIntoStringListLeaveEscaped(child.RemoveMetadata, ExpanderOptions.
ExpandAll
, child.RemoveMetadataLocation).ToList();
104
var matchOnMetadataEvaluated = bucket.Expander.ExpandIntoStringListLeaveEscaped(child.MatchOnMetadata, ExpanderOptions.
ExpandAll
, child.MatchOnMetadataLocation).ToList();
177
ExpanderOptions.
ExpandAll
,
185
ExpanderOptions expanderOptions = ExpanderOptions.
ExpandAll
;
213
ExpanderOptions.
ExpandAll
,
331
ExpanderOptions.
ExpandAll
,
339
string evaluatedValue = bucket.Expander.ExpandIntoStringLeaveEscaped(metadataInstance.Value, ExpanderOptions.
ExpandAll
, metadataInstance.Location);
405
string evaluatedExclude = expander.ExpandIntoStringLeaveEscaped(originalItem.Exclude, ExpanderOptions.
ExpandAll
, originalItem.ExcludeLocation);
562
var specificationPieces = expander.ExpandIntoStringListLeaveEscaped(specification, ExpanderOptions.
ExpandAll
, specificationLocation);
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (2)
65
ExpanderOptions.
ExpandAll
,
85
string evaluatedValue = bucket.Expander.ExpandIntoStringLeaveEscaped(property.Value, ExpanderOptions.
ExpandAll
, property.Location);
BackEnd\Components\RequestBuilder\TargetEntry.cs (4)
638
targetOutputItemsList = bucket.Expander.ExpandIntoTaskItemsLeaveEscaped(targetReturns, ExpanderOptions.
ExpandAll
, targetReturnsLocation).ToList();
642
targetOutputItemsList.AddRange(bucket.Expander.ExpandIntoTaskItemsLeaveEscaped(targetReturns, ExpanderOptions.
ExpandAll
, targetReturnsLocation));
653
targetOutputItems = new HashSet<TaskItem>(batchingBuckets[0].Expander.ExpandIntoTaskItemsLeaveEscaped(targetReturns, ExpanderOptions.
ExpandAll
, targetReturnsLocation)).ToArray();
660
IList<TaskItem> itemsToAdd = bucket.Expander.ExpandIntoTaskItemsLeaveEscaped(targetReturns, ExpanderOptions.
ExpandAll
, targetReturnsLocation);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (11)
379
ExpanderOptions.
ExpandAll
,
524
string msbuildArchitecture = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildArchitecture ?? String.Empty, ExpanderOptions.
ExpandAll
, _taskNode.MSBuildArchitectureLocation ?? ElementLocation.EmptyLocation);
525
string msbuildRuntime = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildRuntime ?? String.Empty, ExpanderOptions.
ExpandAll
, _taskNode.MSBuildRuntimeLocation ?? ElementLocation.EmptyLocation);
615
string expanded = bucket.Expander.ExpandIntoStringAndUnescape(_targetChildInstance.Condition, ExpanderOptions.
ExpandAll
| ExpanderOptions.LeavePropertiesUnexpandedOnError | ExpanderOptions.Truncate, _targetChildInstance.ConditionLocation);
692
string expandedValue = bucket.Expander.ExpandIntoStringAndUnescape(continueOnErrorAttribute, ExpanderOptions.
ExpandAll
, _taskNode.ContinueOnErrorLocation); // expand embedded item vectors after expanding properties and item metadata
1000
settingString = bucket.Expander.ExpandIntoStringAndUnescape(_taskNode.ContinueOnError, ExpanderOptions.
ExpandAll
, _taskNode.ContinueOnErrorLocation); // expand embedded item vectors after expanding properties and item metadata
1078
ExpanderOptions.
ExpandAll
,
1097
outputTargetName = bucket.Expander.ExpandIntoStringAndUnescape(taskOutputItemInstance.ItemType, ExpanderOptions.
ExpandAll
, taskOutputItemInstance.ItemTypeLocation);
1115
outputTargetName = bucket.Expander.ExpandIntoStringAndUnescape(taskOutputPropertyInstance.PropertyName, ExpanderOptions.
ExpandAll
, taskOutputPropertyInstance.PropertyNameLocation);
1129
taskParameterName = bucket.Expander.ExpandIntoStringAndUnescape(taskParameterName, ExpanderOptions.
ExpandAll
, taskOutputSpecification.TaskParameterLocation);
1205
string taskParameterValue = bucket.Expander.ExpandIntoStringAndUnescape(taskParameterAttribute, ExpanderOptions.
ExpandAll
, taskPropertyInstance.TaskParameterLocation);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (5)
1148
IList<TaskItem> finalTaskItems = _batchBucket.Expander.ExpandIntoTaskItemsLeaveEscaped(parameterValue, ExpanderOptions.
ExpandAll
, parameterLocation);
1164
_batchBucket.Expander.ExpandIntoStringAndUnescape(parameterValue, ExpanderOptions.
ExpandAll
, parameterLocation),
1180
string expandedParameterValue = _batchBucket.Expander.ExpandIntoStringAndUnescape(parameterValue, ExpanderOptions.
ExpandAll
, parameterLocation);
1203
_batchBucket.Expander.ExpandIntoStringAndUnescape(parameterValue, ExpanderOptions.
ExpandAll
, parameterLocation),
1267
IList<TaskItem> finalTaskItems = _batchBucket.Expander.ExpandIntoTaskItemsLeaveEscaped(parameterValue, ExpanderOptions.
ExpandAll
, parameterLocation);
Definition\Project.cs (1)
3560
string evaluatedValueEscaped = _data.Expander.ExpandIntoStringLeaveEscaped(unevaluatedValue, ExpanderOptions.
ExpandAll
, metadataLocation);
Evaluation\Expander.cs (1)
2770
object result = function.Execute(item.Key, expander._properties, ExpanderOptions.
ExpandAll
, elementLocation);
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (1)
196
const ExpanderOptions metadataExpansionOptions = ExpanderOptions.
ExpandAll
;
Microsoft.Build.Engine.UnitTests (30)
BackEnd\BatchingEngine_Tests.cs (2)
73
bucket.Expander, ExpanderOptions.
ExpandAll
,
87
Assert.Equal(String.Empty, buckets[0].Expander.ExpandIntoStringAndUnescape("%(Extension)", ExpanderOptions.
ExpandAll
, MockElementLocation.Instance));
Evaluation\Expander_Tests.cs (21)
311
string result = expander.ExpandIntoStringLeaveEscaped("[@(type->'%($(a)), '%'')]", ExpanderOptions.
ExpandAll
, MockElementLocation.Instance);
325
string result = expander.ExpandIntoStringLeaveEscaped("[@(i->'%(Meta9))']", ExpanderOptions.
ExpandAll
, MockElementLocation.Instance);
1425
ExpanderOptions.
ExpandAll
, MockElementLocation.Instance);
1457
expander.ExpandIntoStringAndUnescape(stringToExpand, ExpanderOptions.
ExpandAll
, MockElementLocation.Instance));
1462
expander.ExpandIntoStringAndUnescape(stringToExpand, ExpanderOptions.
ExpandAll
, MockElementLocation.Instance));
1467
expander.ExpandIntoStringAndUnescape(stringToExpand, ExpanderOptions.
ExpandAll
, MockElementLocation.Instance));
1472
expander.ExpandIntoStringAndUnescape(stringToExpand, ExpanderOptions.
ExpandAll
, MockElementLocation.Instance));
1477
expander.ExpandIntoStringAndUnescape(stringToExpand, ExpanderOptions.
ExpandAll
, MockElementLocation.Instance));
1482
expander.ExpandIntoStringAndUnescape(stringToExpand, ExpanderOptions.
ExpandAll
, MockElementLocation.Instance));
1487
expander.ExpandIntoStringAndUnescape(stringToExpand, ExpanderOptions.
ExpandAll
, MockElementLocation.Instance));
1492
expander.ExpandIntoStringAndUnescape(stringToExpand, ExpanderOptions.
ExpandAll
, MockElementLocation.Instance));
1512
expander.ExpandIntoStringAndUnescape(xmlattribute.Value, ExpanderOptions.
ExpandAll
, MockElementLocation.Instance));
1518
expander.ExpandIntoStringAndUnescape(xmlattribute.Value, ExpanderOptions.
ExpandAll
, MockElementLocation.Instance));
1540
expander.ExpandIntoStringAndUnescape(xmlattribute.Value, ExpanderOptions.
ExpandAll
, MockElementLocation.Instance));
1561
expander.ExpandIntoStringLeaveEscaped(xmlattribute.Value, ExpanderOptions.
ExpandAll
, MockElementLocation.Instance));
1620
Assert.Equal(expected, expander.ExpandIntoStringAndUnescape(xmlattribute.Value, ExpanderOptions.
ExpandAll
| ExpanderOptions.Truncate, MockElementLocation.Instance));
1643
string expandedString = expander.ExpandIntoStringLeaveEscaped(xmlattribute.Value, ExpanderOptions.
ExpandAll
, MockElementLocation.Instance);
1671
Assert.Equal(@"string$(p);dialogs%3b ; splash.bmp ; ; ; ; \jk ; l\mno%3bpqr\stu ; subdir1" + Path.DirectorySeparatorChar + ";subdir2" + Path.DirectorySeparatorChar + " ; english_abc%3bdef;ghi", expander.ExpandIntoStringAndUnescape(value, ExpanderOptions.
ExpandAll
, MockElementLocation.Instance));
1691
IList<string> expanded = expander.ExpandIntoStringListLeaveEscaped(value, ExpanderOptions.
ExpandAll
, MockElementLocation.Instance).ToList();
3924
string result = expander.ExpandIntoStringLeaveEscaped(@"$([System.IO.Path]::Combine($(SomePath),%(Compile.Identity)))", ExpanderOptions.
ExpandAll
, MockElementLocation.Instance);
3944
string result = expander.ExpandIntoStringLeaveEscaped($"$([System.String]::new(%({metadatumName})))", ExpanderOptions.
ExpandAll
, MockElementLocation.Instance);
ExpressionTree_Tests.cs (4)
115
ExpanderOptions.
ExpandAll
,
338
ExpanderOptions.
ExpandAll
,
447
ExpanderOptions.
ExpandAll
,
483
ExpanderOptions.
ExpandAll
,
ExpressionTreeExpression_Tests.cs (3)
441
ExpanderOptions.
ExpandAll
,
465
ExpanderOptions.
ExpandAll
,
497
ExpanderOptions.
ExpandAll
,