39 references to ExpandItems
Microsoft.Build (12)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
432
ExpanderOptions.
ExpandItems
,
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (1)
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 (1)
1195
ICollection<ProjectItemInstance> items = bucket.Expander.ExpandIntoItemsLeaveEscaped(outputItemSpec, itemFactory, ExpanderOptions.
ExpandItems
, taskItemInstance.TaskParameterLocation);
Evaluation\Evaluator.cs (1)
382
IList<I> itemsFromSplit = expander.ExpandSingleItemVectorExpressionIntoItems(includeSplitEscaped, itemFactory, ExpanderOptions.
ExpandItems
, false /* do not include null expansion results */, out throwaway, itemElement.IncludeLocation);
Evaluation\Expander.cs (4)
101
ExpandPropertiesAndItems = ExpandProperties |
ExpandItems
,
116
ExpandAll = ExpandMetadata | ExpandProperties |
ExpandItems
1853
if (((options & ExpanderOptions.
ExpandItems
) == 0) || (expression.Length == 0))
2082
if ((options & ExpanderOptions.
ExpandItems
) == 0 || expression.Length == 0)
Evaluation\ItemSpec.cs (2)
123
ExpanderOptions.
ExpandItems
,
273
ExpanderOptions.
ExpandItems
,
Evaluation\LazyItemEvaluator.cs (1)
677
expression, ExpanderOptions.
ExpandItems
, elementLocation);
Evaluation\LazyItemEvaluator.IncludeOperation.cs (1)
71
ExpanderOptions.
ExpandItems
,
Microsoft.Build.Engine.UnitTests (27)
BackEnd\BatchingEngine_Tests.cs (6)
78
Assert.Equal("a.doc;b.doc;c.doc;d.doc;e.doc", bucket.Expander.ExpandIntoStringAndUnescape("@(doc)", ExpanderOptions.
ExpandItems
, 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));
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);
Evaluation\Expander_Tests.cs (21)
179
IList<ProjectItemInstance> items = expander.ExpandIntoItemsLeaveEscaped("@(i)", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
199
IList<ProjectItemInstance> items = expander.ExpandIntoItemsLeaveEscaped("@(i)", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
219
IList<ProjectItemInstance> itemsTrue = expander.ExpandIntoItemsLeaveEscaped("@(i->AnyHaveMetadataValue('Even', 'true'))", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
225
IList<ProjectItemInstance> itemsFalse = expander.ExpandIntoItemsLeaveEscaped("@(i->AnyHaveMetadataValue('Even', 'goop'))", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
239
IList<ProjectItemInstance> itemsEmpty = expander.ExpandIntoItemsLeaveEscaped("@(unsetItem->AnyHaveMetadataValue('Metadatum', 'value'))", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
257
IList<ProjectItemInstance> itemsTrue = expander.ExpandIntoItemsLeaveEscaped("@(i->Metadata('Meta0')->DirectoryName()->Distinct())", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
263
IList<ProjectItemInstance> itemsDir = expander.ExpandIntoItemsLeaveEscaped("@(i->Metadata('Meta9')->DirectoryName()->Distinct())", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
283
IList<ProjectItemInstance> itemsTrue = expander.ExpandIntoItemsLeaveEscaped("@(i->Metadata('Meta0')->Directory())", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
289
itemsTrue = expander.ExpandIntoItemsLeaveEscaped("@(i->Metadata('Meta0')->Filename())", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
295
itemsTrue = expander.ExpandIntoItemsLeaveEscaped("@(i->Metadata('Meta0')->Extension())", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
341
string result = expander.ExpandIntoStringLeaveEscaped("@(i->'%(Meta0)'->'%(Directory)'->Distinct())", ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
357
string result = expander.ExpandIntoStringLeaveEscaped("[@(i->'%(Meta0)'->'%(Directory)'->Distinct())]", ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
371
string result = expander.ExpandIntoStringLeaveEscaped("@(i->'%(MetaBlank)'->'%(Directory)'->Distinct())", ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
656
IList<ProjectItemInstance> itemsTrue = expander.ExpandIntoItemsLeaveEscaped("@(i->'%(Meta0)'->'%(Directory)')", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
662
itemsTrue = expander.ExpandIntoItemsLeaveEscaped("@(i->'%(Meta0)'->'%(Filename)')", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
668
itemsTrue = expander.ExpandIntoItemsLeaveEscaped("@(i->'%(Meta0)'->'%(Extension)'->Distinct())", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
674
itemsTrue = expander.ExpandIntoItemsLeaveEscaped("@(i->'%(Meta0)'->'%(Filename)'->Substring($(Val)))", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
694
IList<ProjectItemInstance> itemsTrue = expander.ExpandIntoItemsLeaveEscaped("@(i->Metadata('Meta0')->DirectoryName())", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
714
IList<ProjectItemInstance> items = expander.ExpandIntoItemsLeaveEscaped("@(i->Metadata('Meta10')->DirectoryName())", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
734
IList<ProjectItemInstance> items = expander.ExpandIntoItemsLeaveEscaped("@(i->ClearMetadata())", itemFactory, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance);
1673
Assert.Equal(@"string$(p);dialogs%3b ; splash.bmp ; ; $(NonExistent) ; %(NonExistent) ; $(OutputPath) ; $(TargetPath) ; %(Language)_%(Culture)", expander.ExpandIntoStringAndUnescape(value, ExpanderOptions.
ExpandItems
, MockElementLocation.Instance));