56 references to Expander
Microsoft.Build (46)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (16)
70
bucket.
Expander
,
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();
162
NestedMetadataTable metadataTable = new NestedMetadataTable(child.ItemType, bucket.
Expander
.Metadata, itemDefinition);
163
IMetadataTable originalMetadataTable = bucket.
Expander
.Metadata;
165
bucket.
Expander
.Metadata = metadataTable;
168
List<ProjectItemInstance> itemsToAdd = ExpandItemIntoItems(child, bucket.
Expander
, keepMetadata, removeMetadata, loggingContext);
176
bucket.
Expander
,
194
string evaluatedValue = bucket.
Expander
.ExpandIntoStringLeaveEscaped(metadataInstance.Value, expanderOptions, metadataInstance.Location);
206
bucket.
Expander
.Metadata = originalMetadataTable;
212
bucket.
Expander
,
262
itemsToRemove = FindItemsMatchingSpecification(group, child.Remove, child.RemoveLocation, bucket.
Expander
);
266
itemsToRemove = FindItemsMatchingMetadataSpecification(group, child, bucket.
Expander
, matchOnMetadata, matchingOptions);
330
bucket.
Expander
,
339
string evaluatedValue = bucket.
Expander
.ExpandIntoStringLeaveEscaped(metadataInstance.Value, ExpanderOptions.ExpandAll, metadataInstance.Location);
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (6)
64
bucket.
Expander
,
81
bucket.
Expander
.PropertiesUseTracker.CurrentlyEvaluatingPropertyElementName = property.Name;
82
bucket.
Expander
.PropertiesUseTracker.PropertyReadContext =
85
string evaluatedValue = bucket.
Expander
.ExpandIntoStringLeaveEscaped(property.Value, ExpanderOptions.ExpandAll, property.Location);
86
bucket.
Expander
.PropertiesUseTracker.CheckPreexistingUndefinedUsage(property, evaluatedValue, LoggingContext);
107
bucket.
Expander
.PropertiesUseTracker.ResetPropertyReadContext(pop: false);
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\TargetUpToDateChecker.cs (3)
412
var targetInputs = bucket.
Expander
.ExpandIntoStringListLeaveEscaped(TargetInputSpecification, ExpanderOptions.ExpandPropertiesAndMetadata, _targetToAnalyze.InputsLocation);
413
var targetOutputs = bucket.
Expander
.ExpandIntoStringListLeaveEscaped(TargetOutputSpecification, ExpanderOptions.ExpandPropertiesAndMetadata, _targetToAnalyze.OutputsLocation);
817
IList<ProjectItemInstance> itemVectorContents = bucket.
Expander
.ExpandSingleItemVectorExpressionIntoItems(item, itemFactory, ExpanderOptions.ExpandItems, true /* include null entries from transforms */, out bool isTransformExpression, elementLocation);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (12)
378
bucket.
Expander
,
423
IDictionary<string, string> taskIdentityParameters = GatherTaskIdentityParameters(bucket.
Expander
);
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
1077
bucket.
Expander
,
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);
1190
var outputItemSpecs = bucket.
Expander
.ExpandIntoStringListLeaveEscaped(taskParameterAttribute, ExpanderOptions.ExpandPropertiesAndMetadata, taskItemInstance.TaskParameterLocation);
1195
ICollection<ProjectItemInstance> items = bucket.
Expander
.ExpandIntoItemsLeaveEscaped(outputItemSpec, itemFactory, ExpanderOptions.ExpandItems, taskItemInstance.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);
Microsoft.Build.Engine.UnitTests (10)
BackEnd\BatchingEngine_Tests.cs (10)
73
bucket.
Expander
, ExpanderOptions.ExpandAll,
78
Assert.Equal("a.doc;b.doc;c.doc;d.doc;e.doc", bucket.
Expander
.ExpandIntoStringAndUnescape("@(doc)", ExpanderOptions.ExpandItems, MockElementLocation.Instance));
79
Assert.Equal("unittests.foo", bucket.
Expander
.ExpandIntoStringAndUnescape("$(bogus)$(UNITTESTS)", ExpanderOptions.ExpandPropertiesAndMetadata, MockElementLocation.Instance));
82
Assert.Equal("a.foo", buckets[0].
Expander
.ExpandIntoStringAndUnescape("@(File)", ExpanderOptions.ExpandItems, MockElementLocation.Instance));
83
Assert.Equal(".foo", buckets[0].
Expander
.ExpandIntoStringAndUnescape("@(File->'%(Extension)')", ExpanderOptions.ExpandItems, MockElementLocation.Instance));
84
Assert.Equal("obj\\a.ext", buckets[0].
Expander
.ExpandIntoStringAndUnescape("$(obj)\\%(Filename).ext", ExpanderOptions.ExpandPropertiesAndMetadata, MockElementLocation.Instance));
87
Assert.Equal(String.Empty, buckets[0].
Expander
.ExpandIntoStringAndUnescape("%(Extension)", ExpanderOptions.ExpandAll, MockElementLocation.Instance));
90
items = buckets[0].
Expander
.ExpandIntoItemsLeaveEscaped("@(file)", factory, ExpanderOptions.ExpandItems, MockElementLocation.Instance);
100
items = buckets[0].
Expander
.ExpandSingleItemVectorExpressionIntoItems("@(file)$(unitests)", factory, ExpanderOptions.ExpandItems, false /* no nulls */, out throwAway, MockElementLocation.Instance);
110
items = buckets[0].
Expander
.ExpandIntoItemsLeaveEscaped("@(file, ',')", factory, ExpanderOptions.ExpandItems, MockElementLocation.Instance);